We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46972b commit 53c7c55Copy full SHA for 53c7c55
Lib/site.py
@@ -262,6 +262,7 @@ def check_enableusersite():
262
263
# Copy of sysconfig._getuserbase()
264
def _getuserbase():
265
+ return None # Do not try to load stuff from user dirs to avoid contamination from system python.
266
env_base = os.environ.get("PYTHONUSERBASE", None)
267
if env_base:
268
return env_base
Lib/sysconfig.py
@@ -107,6 +107,7 @@
107
# NOTE: site.py has copy of this function.
108
# Sync it when modify this function.
109
110
111
112
113
0 commit comments