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