mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)
This commit is contained in:
parent
7f07b5ee9c
commit
55a5e17d19
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ elif os_name == 'darwin':
|
|||
# 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue