Skip to content

Commit f522792

Browse files
authored
allow path-like objects to be cwd on windows (#389)
#157 added the test, but it's currently (correctly) broken on windows.
1 parent 0b84325 commit f522792

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-
cwd,
991+
os.fspath(cwd),
992992
startupinfo)
993993
finally:
994994
# Child is launched. Close the parent's copy of those pipe

0 commit comments

Comments
 (0)