Commit 91b7ffef authored by Aditya Vijaykumar's avatar Aditya Vijaykumar
Browse files

skip conversion of label to abspath while writing complete config file

parent 488f3fc7
...@@ -1045,6 +1045,8 @@ def generate_dag(inputs): ...@@ -1045,6 +1045,8 @@ def generate_dag(inputs):
def write_complete_config_file(parser, args, inputs): def write_complete_config_file(parser, args, inputs):
args_dict = vars(args).copy() args_dict = vars(args).copy()
for key, val in args_dict.items(): for key, val in args_dict.items():
if key == "label":
if isinstance(val, str): if isinstance(val, str):
if os.path.isfile(val) or os.path.isdir(val): if os.path.isfile(val) or os.path.isdir(val):
setattr(args, key, os.path.abspath(val)) setattr(args, key, os.path.abspath(val))
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