Allow --database to work without installed bsddb3/sqlite3
This commit is contained in:
parent
3c9cbb25b0
commit
9d5322103e
@ -329,11 +329,12 @@ class ArgParser(object):
|
|||||||
for plugin in pmgr.get_reg_databases():
|
for plugin in pmgr.get_reg_databases():
|
||||||
pdata = pmgr.get_plugin(plugin.id)
|
pdata = pmgr.get_plugin(plugin.id)
|
||||||
mod = pmgr.load_plugin(pdata)
|
mod = pmgr.load_plugin(pdata)
|
||||||
database = getattr(mod, pdata.databaseclass)
|
if mod:
|
||||||
summary = database.get_class_summary()
|
database = getattr(mod, pdata.databaseclass)
|
||||||
print("Database backend ID:", pdata.id, "(default)" if pdata.id == default else "")
|
summary = database.get_class_summary()
|
||||||
for key in sorted(summary.keys()):
|
print("Database backend ID:", pdata.id, "(default)" if pdata.id == default else "")
|
||||||
print(" ", "%s:" % key, summary[key])
|
for key in sorted(summary.keys()):
|
||||||
|
print(" ", "%s:" % key, summary[key])
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif option in ['-c', '--config']:
|
elif option in ['-c', '--config']:
|
||||||
setting_name = value
|
setting_name = value
|
||||||
|
Loading…
Reference in New Issue
Block a user