commit | f52279257e06600804c26dc460a9ac33e66f1e24 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Mar 01 23:04:03 2017 -0800 |
committer | GitHub <noreply@github.com> | Wed Mar 01 23:04:03 2017 -0800 |
tree | e6b301b50fb2c7d27e8d14066b1fc23135a04b5b | |
parent | 0b8432538acf45d7a605fe68648b4712e8d9cee3 [diff] |
allow path-like objects to be cwd on windows (#389) #157 added the test, but it's currently (correctly) broken on windows.
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 @@ int(not close_fds), creationflags, env, - cwd, + os.fspath(cwd), startupinfo) finally: # Child is launched. Close the parent's copy of those pipe