diff options
author | Christian Heimes <christian@python.org> | 2022-06-09 15:45:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 15:45:29 (GMT) |
commit | 5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360 (patch) | |
tree | 244779a03c19dc48253922057f770483b9a7c033 /Lib/site.py | |
parent | e974b3e333c9827551d434661a99d990263bf915 (diff) | |
download | cpython-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.py | 4 |
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): |