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 3a52e4e commit 23e2cfdCopy full SHA for 23e2cfd
Lib/site.py
@@ -272,6 +272,7 @@ def check_enableusersite():
272
273
# Copy of sysconfig._getuserbase()
274
def _getuserbase():
275
+ return None # Do not try to load stuff from user dirs to avoid contamination from system python.
276
env_base = os.environ.get("PYTHONUSERBASE", None)
277
if env_base:
278
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