Skip to content

Commit 55a5e17

Browse files
authored
bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)
1 parent 7f07b5e commit 55a5e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def search_up(prefix, *landmarks, test=isfile):
277277
# executable path was provided in the config.
278278
real_executable = executable
279279

280-
if not executable and program_name:
280+
if not executable and program_name and ENV_PATH:
281281
# Resolve names against PATH.
282282
# NOTE: The use_environment value is ignored for this lookup.
283283
# To properly isolate, launch Python with a full path.

0 commit comments

Comments
 (0)