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