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): if os.path.isfile(DEFAULT_CONFIG):
config_params = runpy.run_path(DEFAULT_CONFIG) config_params = runpy.run_path(DEFAULT_CONFIG)
for param, value in config_params.items(): for param, value in config_params.items():
var = param.upper() if param.isupper():
if var in globals(): globals()[param] = value
globals()[var] = value