Skip to content

Commit

Permalink
bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored Mar 6, 2022
1 parent 7f07b5e commit 55a5e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/getpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def search_up(prefix, *landmarks, test=isfile):
# executable path was provided in the config.
real_executable = executable

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

0 comments on commit 55a5e17

Please sign in to comment.