summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/getpath.py')
-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