Skip to content

Commit 7ab0d01

Browse files
committed
fix: allow echo.cwl to run on python3
1 parent 8d41828 commit 7ab0d01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/wf/echo.cwl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ inputs:
55
script:
66
type: string
77
default: |
8+
from __future__ import print_function
89
import sys
9-
print sys.argv[1]
10+
print(sys.argv[1])
1011
if sys.argv[1] == "2":
1112
exit(1)
1213
else:
@@ -19,4 +20,4 @@ outputs:
1920
type: File
2021
outputBinding:
2122
glob: foo$(inputs.r).txt
22-
arguments: [python, -c, $(inputs.script), $(inputs.r)]
23+
arguments: [python, -c, $(inputs.script), $(inputs.r)]

0 commit comments

Comments
 (0)