Skip to content

Commit 236a217

Browse files
committed
subprocess executionn on windows need TEMP var always set
1 parent 367756a commit 236a217

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def run(self, pull_image=True, rm_container=True,
279279
env[key] = str(value)
280280
env["HOME"] = str(self.outdir)
281281
env["TMPDIR"] = str(self.tmpdir)
282+
if "PATH" not in env:
283+
env["PATH"] = str(os.environ["PATH"])
282284

283285
stageFiles(self.pathmapper, ignoreWritable=True, symFunc=True)
284286
if self.generatemapper:

0 commit comments

Comments
 (0)