Fix dictionary merging order

We want to override defaults with config, not the other way around
This commit is contained in:
yuvipanda
2018-07-11 18:58:11 -07:00
parent 6d3efffcb5
commit c749d1a09f

View File

@@ -41,7 +41,7 @@ def apply_yaml_config(path, c):
if os.path.exists(path): if os.path.exists(path):
with open(path) as f: with open(path) as f:
# FIXME: Figure out correct order of merging here # FIXME: Figure out correct order of merging here
tljh_config = _merge_dictionaries(yaml.safe_load(f), default) tljh_config = _merge_dictionaries(dict(default), yaml.safe_load(f))
else: else:
tljh_config = copy.deepcopy(default) tljh_config = copy.deepcopy(default)