From: Zachary Ware Date: Sat, 11 Mar 2017 23:16:34 +0000 (-0600) Subject: fix subprocess on Windows (GH-391 backport) (GH-623) X-Git-Tag: v3.6.2rc1~328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df6f3f6f5743a061d6c3b939136a11ac170ae69e;p=thirdparty%2FPython%2Fcpython.git fix subprocess on Windows (GH-391 backport) (GH-623) --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 822ddb459e26..0db6571f291d 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -986,7 +986,7 @@ class Popen(object): 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