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