golden hour
/usr/local/lib/python3.6/site-packages/virtualenv/create/via_global_ref/builtin/python2/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-36.pyc
178 B
Del
OK
python2.cpython-36.pyc
4.03 KB
Del
OK
site.cpython-36.pyc
5.3 KB
Del
OK
Edit: site.cpython-36.pyc
3 ��f� � @ s� d Z ddlZdd� Zdd� Zdd� Zejd kr2d ndZdd � Zdd� Zddd�Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Ze� dS ) z� A simple shim module to fix up things on Python 2 only. Note: until we setup correctly the paths we can only import built-ins. � Nc C sh t } t� }|d t_t_|d t_|d t_|jdd�dk}t� t � t | � |r\t� t| � dS )z2Patch what needed, and invoke the original site.pyzbase-prefixzbase-exec-prefixzbase-executablezinclude-system-site-packagesF�trueN) �__file__�read_pyvenv�sys�real_prefix�base_prefix�base_exec_prefix�base_executable�get�!rewrite_standard_library_sys_path�disable_user_site_package�load_host_site�add_global_site_package�rewrite_getsitepackages)�here�configZglobal_site_package_enabled� r �[/tmp/pip-build-ni_5055i/virtualenv/virtualenv/create/via_global_ref/builtin/python2/site.py�main s r c C s* t jd j}xt| �D ]}||� qW dS )zetrigger reload of site.py - now it will use the standard library instance that will take care of init�siteN)r �modules� addsitedir�get_site_packages_dirs)r Zadd_site_dir�pathr r r r s r c c sJ dd l }dd l}d}x0|j|�D ]"}|jj|jj| |jd���V q W d S )Nr z& ___EXPECTED_SITE_PACKAGES___ zutf-8)�json�os�loadsr �abspath�join�encode)r r r � site_packagesr r r r r 3 s r �win32�\�/c C s� dj tjt�} t| ��}|j� }W dQ R X i }xV|D ]N}y|jd�}W n tk r\ w4Y q4X ||d d� j� ||d|� j� <