/
snap
/
core20
/
2866
/
usr
/
lib
/
python3
/
dist-packages
/
setuptools
/
/snap/core20/2866/usr/lib/python3/dist-packages/setuptools
mkdir
upload
Name
Size
Mode
Actions
command/
-
0755
rm
extern/
-
0755
rm
_vendor/
-
0755
rm
__pycache__/
-
0755
rm
archive_util.py
6626
0644
edit
dl
rm
build_meta.py
9960
0644
edit
dl
rm
cli-32.exe
65536
0644
edit
dl
rm
cli-64.exe
74752
0644
edit
dl
rm
cli.exe
65536
0644
edit
dl
rm
config.py
20575
0644
edit
dl
rm
depends.py
5517
0644
edit
dl
rm
dep_util.py
949
0644
edit
dl
rm
dist.py
49872
0644
edit
dl
rm
errors.py
524
0644
edit
dl
rm
extension.py
1729
0644
edit
dl
rm
glob.py
5084
0644
edit
dl
rm
gui-32.exe
65536
0644
edit
dl
rm
gui-64.exe
75264
0644
edit
dl
rm
gui.exe
65536
0644
edit
dl
rm
installer.py
5336
0644
edit
dl
rm
launch.py
787
0644
edit
dl
rm
lib2to3_ex.py
2013
0644
edit
dl
rm
monkey.py
5264
0644
edit
dl
rm
msvc.py
46807
0644
edit
dl
rm
namespaces.py
3223
0644
edit
dl
rm
package_index.py
42394
0644
edit
dl
rm
py27compat.py
1504
0644
edit
dl
rm
py31compat.py
838
0644
edit
dl
rm
py33compat.py
1330
0644
edit
dl
rm
py34compat.py
245
0644
edit
dl
rm
sandbox.py
14284
0644
edit
dl
rm
script (dev).tmpl
218
0644
edit
dl
rm
script.tmpl
138
0644
edit
dl
rm
site-patch.py
2346
0644
edit
dl
rm
ssl_support.py
8543
0644
edit
dl
rm
unicode_utils.py
996
0644
edit
dl
rm
version.py
144
0644
edit
dl
rm
wheel.py
8468
0644
edit
dl
rm
windows_support.py
714
0644
edit
dl
rm
_deprecation_warning.py
218
0644
edit
dl
rm
_imp.py
2388
0644
edit
dl
rm
__init__.py
7273
0644
edit
dl
rm
Edit:
/snap/core20/2866/usr/lib/python3/dist-packages/setuptools/site-patch.py
(2346B)
def __boot(): import sys import os PYTHONPATH = os.environ.get('PYTHONPATH') if PYTHONPATH is None or (sys.platform == 'win32' and not PYTHONPATH): PYTHONPATH = [] else: PYTHONPATH = PYTHONPATH.split(os.pathsep) pic = getattr(sys, 'path_importer_cache', {}) stdpath = sys.path[len(PYTHONPATH):] mydir = os.path.dirname(__file__) for item in stdpath: if item == mydir or not item: continue # skip if current dir. on Windows, or my own directory importer = pic.get(item) if importer is not None: loader = importer.find_module('site') if loader is not None: # This should actually reload the current module loader.load_module('site') break else: try: import imp # Avoid import loop in Python 3 stream, path, descr = imp.find_module('site', [item]) except ImportError: continue if stream is None: continue try: # This should actually reload the current module imp.load_module('site', stream, path, descr) finally: stream.close() break else: raise ImportError("Couldn't find the real 'site' module") # 2.2 comp known_paths = dict([( makepath(item)[1], 1) for item in sys.path]) # noqa oldpos = getattr(sys, '__egginsert', 0) # save old insertion position sys.__egginsert = 0 # and reset the current one for item in PYTHONPATH: addsitedir(item) # noqa sys.__egginsert += oldpos # restore effective old position d, nd = makepath(stdpath[0]) # noqa insert_at = None new_path = [] for item in sys.path: p, np = makepath(item) # noqa if np == nd and insert_at is None: # We've hit the first 'system' path entry, so added entries go here insert_at = len(new_path) if np in known_paths or insert_at is None: new_path.append(item) else: # new path after the insert point, back-insert it new_path.insert(insert_at, item) insert_at += 1 sys.path[:] = new_path if __name__ == 'site': __boot() del __boot
Save
cmd:
run