mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)
(cherry picked from commit 5a4af3ab03
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
2084f9479c
commit
4c41f21153
3 changed files with 6 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue