Skip to content

Commit 28d13e5

Browse files
better check for cwd being empty
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 9bf8852 commit 28d13e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ def _posix_spawn(self, args, executable, env, restore_signals, close_fds, cwd,
18641864
if fd != -1:
18651865
file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
18661866

1867-
if cwd:
1867+
if cwd is not None:
18681868
file_actions.append((os.POSIX_SPAWN_CHDIR, cwd))
18691869

18701870
if close_fds:

0 commit comments

Comments
 (0)