summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-12-07 00:07:35 (GMT)
committerGitHub <noreply@github.com>2021-12-07 00:07:35 (GMT)
commitb7ef27bc084665ce58d89fc69530c6f9d2d37754 (patch)
tree4b22280b6ad3fe3f7d54f14c98236085d4e7f2a2 /Modules
parent265918bb1d782ab85c7dbc835eb62d6cfc2145b7 (diff)
downloadcpython-b7ef27bc084665ce58d89fc69530c6f9d2d37754.zip
cpython-b7ef27bc084665ce58d89fc69530c6f9d2d37754.tar.gz
cpython-b7ef27bc084665ce58d89fc69530c6f9d2d37754.tar.bz2
bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/getpath.py b/Modules/getpath.py
index 2eadfba..4ef49a8 100644
--- a/Modules/getpath.py
+++ b/Modules/getpath.py
@@ -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