Skip to content

Commit

Permalink
adding parse_it for configuration support of multiple types
Browse files Browse the repository at this point in the history
  • Loading branch information
Naor Livne committed Apr 28, 2019
1 parent 6458451 commit 185dde1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def wrapped(*args, **kwargs):

# read config file at startup
print("reading config variables")
parser = ParseIt(config_folder_location="config", config_type_priority=["envvars", "json", "yaml", "yml", "toml",
"tml"])
parser = ParseIt(config_folder_location="config")

print("reading config variables")
basic_auth_user = parser.read_configuration_variable("basic_auth_user", default_value=None)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ipaddress==1.0.22
itsdangerous==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
parse-it==0.1.8
parse-it==0.1.9
pycparser==2.19
pymongo==3.8.0
python-dateutil==2.8.0
Expand Down

0 comments on commit 185dde1

Please sign in to comment.