diff --git a/Lib/subprocess.py b/Lib/subprocess.py index dffcda3e9fbbc0..23e9bd328c1281 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -988,7 +988,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds, int(not close_fds), creationflags, env, - cwd, + os.fspath(cwd), startupinfo) finally: # Child is launched. Close the parent's copy of those pipe