mirror of
https://github.com/paul-nameless/tg
synced 2024-11-26 05:40:17 +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):
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue