Skip to content

Commit cb90f26

Browse files
authored
fix subprocess on Windows (#391)
1 parent afbb5d1 commit cb90f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/subprocess.py

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

0 commit comments

Comments
 (0)