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

Commit df6f3f6

Browse files
authored
fix subprocess on Windows (GH-391 backport) (GH-623)
1 parent b3536df commit df6f3f6

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)