X7ROOT File Manager
Current Path:
/usr/lib/python3.8/site-packages/pip/_internal/utils
usr
/
lib
/
python3.8
/
site-packages
/
pip
/
_internal
/
utils
/
ðŸ“
..
📄
__init__.py
(0 B)
ðŸ“
__pycache__
📄
appdirs.py
(9.54 KB)
📄
compat.py
(9.34 KB)
📄
deprecation.py
(3.24 KB)
📄
encoding.py
(1.29 KB)
📄
filesystem.py
(3.26 KB)
📄
filetypes.py
(571 B)
📄
glibc.py
(4.29 KB)
📄
hashes.py
(3.93 KB)
📄
inject_securetransport.py
(810 B)
📄
logging.py
(12.73 KB)
📄
marker_files.py
(823 B)
📄
misc.py
(24.98 KB)
📄
models.py
(1.12 KB)
📄
packaging.py
(2.96 KB)
📄
setuptools_build.py
(1.59 KB)
📄
subprocess.py
(9.68 KB)
📄
temp_dir.py
(5.39 KB)
📄
typing.py
(1.1 KB)
📄
ui.py
(13.58 KB)
📄
unpacking.py
(9.46 KB)
📄
urls.py
(1.45 KB)
📄
virtualenv.py
(891 B)
Editing: virtualenv.py
import os.path import site import sys def running_under_virtualenv(): # type: () -> bool """ Return True if we're running inside a virtualenv, False otherwise. """ if hasattr(sys, 'real_prefix'): # pypa/virtualenv case return True elif sys.prefix != getattr(sys, "base_prefix", sys.prefix): # PEP 405 venv return True return False def virtualenv_no_global(): # type: () -> bool """ Return True if in a venv and no system site packages. """ # this mirrors the logic in virtualenv.py for locating the # no-global-site-packages.txt file site_mod_dir = os.path.dirname(os.path.abspath(site.__file__)) no_global_file = os.path.join(site_mod_dir, 'no-global-site-packages.txt') if running_under_virtualenv() and os.path.isfile(no_global_file): return True else: return False
Upload File
Create Folder