]> granicus.if.org Git - python/commitdiff
allow path-like objects to be cwd on windows (#389)
authorBenjamin Peterson <benjamin@python.org>
Thu, 2 Mar 2017 07:04:03 +0000 (23:04 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 07:04:03 +0000 (23:04 -0800)
#157 added the test, but it's currently (correctly) broken on windows.

Lib/subprocess.py

index dffcda3e9fbbc0a76a3f0728d7822d5e80677311..23e9bd328c12818f0a022e9ae8fccda3e6e83dff 100644 (file)
@@ -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