From: Benjamin Peterson Date: Thu, 2 Mar 2017 07:04:03 +0000 (-0800) Subject: allow path-like objects to be cwd on windows (#389) X-Git-Tag: v3.7.0a1~1240 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f52279257e06600804c26dc460a9ac33e66f1e24;p=python allow path-like objects to be cwd on windows (#389) #157 added the test, but it's currently (correctly) broken on windows. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index dffcda3e9f..23e9bd328c 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -988,7 +988,7 @@ class Popen(object): int(not close_fds), creationflags, env, - cwd, + os.fspath(cwd), startupinfo) finally: # Child is launched. Close the parent's copy of those pipe