From f52279257e06600804c26dc460a9ac33e66f1e24 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 1 Mar 2017 23:04:03 -0800 Subject: [PATCH] allow path-like objects to be cwd on windows (#389) #157 added the test, but it's currently (correctly) broken on windows. --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1