Skip to content

Commit 0be683f

Browse files
better check for cwd being empty
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 6a1b61a commit 0be683f

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
@@ -1785,7 +1785,7 @@ def _posix_spawn(self, args, executable, env, restore_signals, close_fds, cwd,
17851785
if fd != -1:
17861786
file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
17871787

1788-
if cwd:
1788+
if cwd is not None:
17891789
file_actions.append((os.POSIX_SPAWN_CHDIR, cwd))
17901790

17911791
if close_fds:

0 commit comments

Comments
 (0)