Fix config initialization

This commit is contained in:
Paul Nameless 2020-05-29 17:04:36 +08:00
parent f920b0651d
commit b7928993b9

View file

@ -56,6 +56,5 @@ else:
if os.path.isfile(DEFAULT_CONFIG):
config_params = runpy.run_path(DEFAULT_CONFIG)
for param, value in config_params.items():
var = param.upper()
if var in globals():
globals()[var] = value
if param.isupper():
globals()[param] = value