Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Fix config parser code
Browse files Browse the repository at this point in the history
* This fixes an issue where the config file contents were ignored
* Issue introduced with fd22103
  • Loading branch information
tdemin committed Jan 19, 2020
1 parent e43ac1f commit 53a541c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_amber/config.py
Expand Up @@ -34,8 +34,8 @@ class Config:
print(ioerr.strerror)
sys.exit(1)

for entry in vars(config):
if entry in loadedConfig:
for entry in dir(config):
if entry in loadedConfig and not entry.startswith("__"):
setattr(config, entry, loadedConfig[entry])


Expand Down

0 comments on commit 53a541c

Please sign in to comment.