summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-02 07:04:03 (GMT)
committerGitHub <noreply@github.com>2017-03-02 07:04:03 (GMT)
commitf52279257e06600804c26dc460a9ac33e66f1e24 (patch)
treee6b301b50fb2c7d27e8d14066b1fc23135a04b5b
parent0b8432538acf45d7a605fe68648b4712e8d9cee3 (diff)
downloadcpython-f52279257e06600804c26dc460a9ac33e66f1e24.zip
cpython-f52279257e06600804c26dc460a9ac33e66f1e24.tar.gz
cpython-f52279257e06600804c26dc460a9ac33e66f1e24.tar.bz2
allow path-like objects to be cwd on windows (#389)
#157 added the test, but it's currently (correctly) broken on windows.
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index dffcda3..23e9bd3 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