bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)

This commit is contained in:
Steve Dower 2021-12-07 00:07:35 +00:00 committed by GitHub
parent 265918bb1d
commit b7ef27bc08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -500,6 +500,8 @@ else:
prefix, had_delim, exec_prefix = home.partition(DELIM)
if not had_delim:
exec_prefix = prefix
# Reset the standard library directory if it was already set
stdlib_dir = None
# First try to detect prefix by looking alongside our runtime library, if known