Skip to content

Commit 576d986

Browse files
committed
feat: search for json files in projectDir
1 parent b22bf1e commit 576d986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wfcommons/wfbench/translator/nextflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _write_map_file(self, map_dict: Dict, map_name: str, output_file_path: pathl
164164
path = output_file_path.parent.joinpath(f"{map_name}.json")
165165
with open(path, "w") as f:
166166
f.write(json.dumps(map_dict, indent=4))
167-
self.script += f"{map_name} = jsonSlurper.parseText(file(\"{map_name}.json\").text)\n"
167+
self.script += f"{map_name} = jsonSlurper.parseText(file(\"${{projectDir}}/{map_name}.json\").text)\n"
168168

169169
def _create_task_args_map(self, output_file_path: pathlib.Path, abstract_task_name: str, physical_tasks: List[Task]) -> None:
170170
map_name = f"{self.valid_task_name(abstract_task_name)}_args"

0 commit comments

Comments
 (0)