summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-09 15:45:29 (GMT)
committerGitHub <noreply@github.com>2022-06-09 15:45:29 (GMT)
commit5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360 (patch)
tree244779a03c19dc48253922057f770483b9a7c033 /Lib/site.py
parente974b3e333c9827551d434661a99d990263bf915 (diff)
downloadcpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.zip
cpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.tar.gz
cpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.tar.bz2
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/site.py b/Lib/site.py
index b11cd48..69670d9 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -266,8 +266,8 @@ def _getuserbase():
if env_base:
return env_base
- # VxWorks has no home directories
- if sys.platform == "vxworks":
+ # Emscripten, VxWorks, and WASI have no home directories
+ if sys.platform in {"emscripten", "vxworks", "wasi"}:
return None
def joinuser(*args):