Visitar URL original
fix subprocess on Windows (GH-391 backport) · zware/cpython@d948307 · GitHub
Skip to content

Commit d948307

Browse files
benjaminpzware
authored andcommitted
fix subprocess on Windows (pythonGH-391 backport)
1 parent b3536df commit d948307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/subprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
986986
int(not close_fds),
987987
creationflags,
988988
env,
989-
cwd,
989+
os.fspath(cwd) if cwd is not None else None,
990990
startupinfo)
991991
finally:
992992
# Child is launched. Close the parent's copy of those pipe

0 commit comments

Comments
 (0)