mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)
This commit is contained in:
parent
265918bb1d
commit
b7ef27bc08
2 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue