Commit 46d797a8 authored by Zixian Cai's avatar Zixian Cai

Use absolute path

parent 63ef090c
......@@ -308,6 +308,8 @@ def load_yaml(yaml_s, run_dir):
def load_file(config_files):
tasksets = []
for config_file in config_files:
config_file = Path(config_file).resolve()
with open(config_file) as fp:
tasksets.extend(load_yaml(fp.read(), Path(config_file).parent))
tasksets.extend(load_yaml(fp.read(),
config_file.parent))
return tasksets
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment