Skip to content

Commit 611a339

Browse files
better check for cwd being empty
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 31d5736 commit 611a339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/subprocess.py

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

1783-
if cwd:
1783+
if cwd is not None:
17841784
file_actions.append((os.POSIX_SPAWN_CHDIR, cwd))
17851785

17861786
if close_fds:

0 commit comments

Comments
 (0)