mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-05 20:22:27 +00:00
Change stuff
This commit is contained in:
parent
0c6581f912
commit
f66ef5d58e
7 changed files with 895 additions and 6766 deletions
34
third_party/python/Lib/site.py
vendored
34
third_party/python/Lib/site.py
vendored
|
@ -525,27 +525,25 @@ def execusercustomize():
|
|||
|
||||
def main():
|
||||
"""Add standard site-specific directories to the module search path.
|
||||
|
||||
This function is called automatically when this module is imported,
|
||||
unless the python interpreter was started with the -S flag.
|
||||
"""
|
||||
# global ENABLE_USER_SITE
|
||||
|
||||
# abs_paths()
|
||||
# known_paths = removeduppaths()
|
||||
# known_paths = venv(known_paths)
|
||||
# if ENABLE_USER_SITE is None:
|
||||
# ENABLE_USER_SITE = check_enableusersite()
|
||||
# known_paths = addusersitepackages(known_paths)
|
||||
# known_paths = addsitepackages(known_paths)
|
||||
# setquit()
|
||||
# setcopyright()
|
||||
# sethelper()
|
||||
# if not sys.flags.isolated:
|
||||
# enablerlcompleter()
|
||||
# execsitecustomize()
|
||||
# if ENABLE_USER_SITE:
|
||||
# execusercustomize()
|
||||
global ENABLE_USER_SITE
|
||||
abs_paths()
|
||||
known_paths = removeduppaths()
|
||||
known_paths = venv(known_paths)
|
||||
if ENABLE_USER_SITE is None:
|
||||
ENABLE_USER_SITE = check_enableusersite()
|
||||
known_paths = addusersitepackages(known_paths)
|
||||
known_paths = addsitepackages(known_paths)
|
||||
setquit()
|
||||
setcopyright()
|
||||
sethelper()
|
||||
if not sys.flags.isolated:
|
||||
enablerlcompleter()
|
||||
execsitecustomize()
|
||||
if ENABLE_USER_SITE:
|
||||
execusercustomize()
|
||||
|
||||
# Prevent extending of sys.path when python was started with -S and
|
||||
# site is imported later.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue