You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
694 B
Python

2 years ago
"""Application's configuration file"""
from pathlib import Path
# path configuration
2 years ago
# let's guess that :file:`config.py` is located here : :file:`{rootpath}/app/`
2 years ago
_here = Path(__file__).resolve().parent
rootpath = _here.parent
"root project directory"
from yaml import safe_load
2 years ago
# loads database credentials in the globals config module
2 years ago
local_params_file = rootpath / "params.yaml"
with open(local_params_file, 'r') as file_handle:
params_content = safe_load(file_handle)
2 years ago
globals().update(params_content)
"""
# dbadmin = params_content['dbadmin']
# dbpassword = params_content['dbpassword']
# server_ip = params_content['server_ip']
# secret_key, wtf_csrf_secret_key
2 years ago
"""