mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix config initialization
This commit is contained in:
parent
f920b0651d
commit
b7928993b9
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue