set default config importMetadata

This commit is contained in:
j 2016-08-09 12:56:54 +01:00
parent 0430a0f236
commit 7f8b5448e6

View file

@ -128,8 +128,8 @@ def load_config(init=False):
if added: if added:
sys.stderr.write("adding default %s:\n\t" % section) sys.stderr.write("adding default %s:\n\t" % section)
sys.stderr.write("\n\t".join(added) + '\n\n') sys.stderr.write("\n\t".join(added) + '\n\n')
for key in ('language', ): for key in ('language', 'importMetadata'):
if not key in config: if key not in config:
sys.stderr.write("adding default value:\n\t\"%s\": %s,\n\n" % (key, json.dumps(default[key]))) sys.stderr.write("adding default value:\n\t\"%s\": %s,\n\n" % (key, json.dumps(default[key])))
config[key] = default[key] config[key] = default[key]