diff options
Diffstat (limited to 'dovetail')
-rw-r--r-- | dovetail/conf/dovetail_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dovetail/conf/dovetail_config.py b/dovetail/conf/dovetail_config.py index e7942f52..f822d3ad 100644 --- a/dovetail/conf/dovetail_config.py +++ b/dovetail/conf/dovetail_config.py @@ -14,11 +14,12 @@ SCENARIO_NAMING_FMT = 'certification_%s' import yaml import os -with open(os.path.join(os.getcwd(),'conf','dovetail_config.yml')) as f: +curr_path = os.path.dirname(os.path.abspath(__file__)) +with open(os.path.join(curr_path, 'dovetail_config.yml')) as f: dovetail_config = yaml.safe_load(f) for extra_config_file in dovetail_config['include_config']: - with open(os.path.join(os.getcwd(),'conf',extra_config_file)) as f: + with open(os.path.join(curr_path, extra_config_file)) as f: extra_config = yaml.safe_load(f) dovetail_config.update(extra_config) |