Skip to content

Commit 8d44fba

Browse files
committed
fixing path issues in nextflow translator
1 parent 2520953 commit 8d44fba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wfcommons/wfbench/translator/nextflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,16 @@ def _create_task_script(output_folder: pathlib.Path, task: Task):
194194
# Generate input spec
195195
input_spec = "'\\["
196196
for f in task.input_files:
197-
input_spec += f"\"data/{f.file_id}\","
197+
input_spec += f"\"{output_folder.resolve()}/data/{f.file_id}\","
198198
input_spec = input_spec[:-1] + "\\]'"
199199

200200
# Generate output spec
201201
output_spec = "'\\{"
202202
for f in task.output_files:
203-
output_spec += f"\"data/{f.file_id}\":{str(f.size)},"
203+
output_spec += f"\"{output_folder.resolve()}/data/{f.file_id}\":{str(f.size)},"
204204
output_spec = output_spec[:-1] + "\\}'"
205205

206-
code += f"bin/{task.program} "
206+
code += f"{output_folder.resolve()}/bin/{task.program} "
207207

208208
for a in task.args:
209209
if "--output-files" in a:

0 commit comments

Comments
 (0)