We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce1a22 commit 5d2a97eCopy full SHA for 5d2a97e
distutils/spawn.py
@@ -83,14 +83,13 @@ def find_executable(executable, path=None):
83
84
if path is None:
85
path = os.environ.get('PATH', None)
86
+ # bpo-35755: Don't fall through if PATH is the empty string
87
88
try:
89
path = os.confstr("CS_PATH")
90
except (AttributeError, ValueError):
91
# os.confstr() or CS_PATH is not available
92
path = os.defpath
- # bpo-35755: Don't use os.defpath if the PATH environment variable is
93
- # set to an empty string
94
95
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
96
if not path:
0 commit comments