Skip to content

Commit 58d36b5

Browse files
author
Peter Amstutz
committed
Use os.symlink instead of os.link
1 parent 4f75671 commit 58d36b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wes_service/cwl_runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def run(self, request, tempdir, opts):
5959

6060
# link the cwl and json into the tempdir/cwd
6161
if workflow_url.startswith('file://'):
62-
os.link(workflow_url[7:], os.path.join(tempdir, "wes_workflow.cwl"))
62+
os.symlink(workflow_url[7:], os.path.join(tempdir, "wes_workflow.cwl"))
6363
workflow_url = os.path.join(tempdir, "wes_workflow.cwl")
64-
os.link(inputtemp.name, os.path.join(tempdir, "cwl.input.json"))
64+
os.symlink(inputtemp.name, os.path.join(tempdir, "cwl.input.json"))
6565
jsonpath = os.path.join(tempdir, "cwl.input.json")
6666

6767
# build args and run

0 commit comments

Comments
 (0)