Skip to content

Commit 0984709

Browse files
jxtxtetron
authored andcommitted
Fix Python 3 incompatibility in PYTHON_RUN_SCRIPT. (#445)
`file` is no longer a built-in with the new `io` framework. Was causing jobs to fail depending on the python in the conda env.
1 parent a29168b commit 0984709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
if sp.stdin:
7070
sp.stdin.close()
7171
rcode = sp.wait()
72-
if isinstance(stdin, file):
72+
if stdin is not subprocess.PIPE:
7373
stdin.close()
7474
if stdout is not sys.stderr:
7575
stdout.close()

0 commit comments

Comments
 (0)