We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2eb8812 + 331cf3b commit d50976fCopy full SHA for d50976f
src/e3/os/process.py
@@ -314,7 +314,10 @@ def add_interpreter_command(cmd_line: CmdLine) -> CmdLine:
314
"""
315
if not parse_shebang:
316
# nothing to do
317
- return [which(cmd_line[0], default=cmd_line[0])] + cmd_line[1:]
+ paths = env["PATH"] if env and "PATH" in env else None
318
+ return [
319
+ which(cmd_line[0], paths=paths, default=cmd_line[0])
320
+ ] + cmd_line[1:]
321
322
prog = which(cmd_line[0], default=None)
323
if prog is None:
0 commit comments