diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-03-02 07:04:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 07:04:03 (GMT) |
commit | f52279257e06600804c26dc460a9ac33e66f1e24 (patch) | |
tree | e6b301b50fb2c7d27e8d14066b1fc23135a04b5b | |
parent | 0b8432538acf45d7a605fe68648b4712e8d9cee3 (diff) | |
download | cpython-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.py | 2 |
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 |