From: Christian Heimes Date: Sun, 6 Mar 2022 19:49:27 +0000 (+0200) Subject: bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699) X-Git-Tag: v3.11.0a6~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55a5e17d19fecb6a7af85a1a9d44304e5fcb19c7;p=thirdparty%2FPython%2Fcpython.git bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699) --- diff --git a/Modules/getpath.py b/Modules/getpath.py index f84e6e8afaf6..3a13bfdf491a 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -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.