From d94830746140b08c0f952ffea718767ce211d0ec Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 2 Mar 2017 00:03:41 -0800 Subject: [PATCH] fix subprocess on Windows (GH-391 backport) --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 822ddb459e2615..0db6571f291dae 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -986,7 +986,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds, int(not close_fds), creationflags, env, - cwd, + os.fspath(cwd) if cwd is not None else None, startupinfo) finally: # Child is launched. Close the parent's copy of those pipe