mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
os.realname variable for correct USER_SITE value (#410)
In site.py, Python uses os.name to decide where the USER_SITE (ie the folder containing the user's locally installed packages) is located. With cosmo we have set os.name as "posix" always, so we use a new os.realname to decide the USER_SITE location.
This commit is contained in:
parent
c8a2f04058
commit
fb4382e9a4
2 changed files with 3 additions and 2 deletions
1
third_party/python/Lib/os.py
vendored
1
third_party/python/Lib/os.py
vendored
|
@ -42,6 +42,7 @@ def _get_exports_list(module):
|
|||
|
||||
name = 'posix'
|
||||
linesep = '\n'
|
||||
realname = "nt" if cosmo.kernel == "nt" else "posix"
|
||||
from posix import *
|
||||
from posix import _exit
|
||||
__all__.append('_exit')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue