403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-312.pyc
�

T8�h
���ddlmZddlZddlZddlZddlZddlZeje�Z	ejd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd	�Zdd
�Zy)
�)�annotationsNz8include-system-site-packages\s*=\s*(?P<value>true|false)c�b�tjttdtj�k7S)znChecks if sys.base_prefix and sys.prefix match.

    This handles PEP 405 compliant virtual environments.
    �base_prefix)�sys�prefix�getattr���@C:\Python312\Lib\site-packages\pip/_internal/utils/virtualenv.py�_running_under_venvrs ��
�:�:���m�S�Z�Z�@�@�@r
c�"�ttd�S)zmChecks if sys.real_prefix is set.

    This handles virtual environments created with pypa's virtualenv.
    �real_prefix)�hasattrrr	r
r� _running_under_legacy_virtualenvrs���3�
�&�&r
c�.�t�xs
t�S)zDTrue if we're running inside a virtual environment, False otherwise.)rrr	r
r�running_under_virtualenvr s��� �F�$D�$F�Fr
c��tjjtjd�}	t|d��5}|j
�j�cddd�S#1swYyxYw#t$rYywxYw)z�Reads {sys.prefix}/pyvenv.cfg and returns its contents as list of lines

    Returns None, if it could not read/access the file.
    z
pyvenv.cfgzutf-8)�encodingN)	�os�path�joinrr�open�read�
splitlines�OSError)�pyvenv_cfg_file�fs  r�_get_pyvenv_cfg_linesr%sc��
�g�g�l�l�3�:�:�|�<�O���/�G�
4���6�6�8�&�&�(�	)�	)�
4�
4������s.�
A1�A%�	A1�%A.�*A1�.A1�1	A=�<A=c��t�}|�tjd�y|D]0}tj	|�}|��|jd�dk(s�0yy)aZCheck `{sys.prefix}/pyvenv.cfg` for system site-packages inclusion

    PEP 405 specifies that when system site-packages are not supposed to be
    visible from a virtual environment, `pyvenv.cfg` must contain the following
    line:

        include-system-site-packages = false

    Additionally, log a warning if accessing the file fails.
    z�Could not access 'pyvenv.cfg' despite a virtual environment being active. Assuming global site-packages is not accessible in this environment.T�value�falseF)r�logger�warning�#_INCLUDE_SYSTEM_SITE_PACKAGES_REGEX�match�group)�	cfg_lines�liner%s   r�_no_global_under_venvr)4sb��&�'�I���	���
#�	
�
���3�9�9�$�?�������W�!5��!@���r
c��tjjtjjtj
��}tjj
|d�}tjj|�S)z�Check if "no-global-site-packages.txt" exists beside site.py

    This mirrors logic in pypa/virtualenv for determining whether system
    site-packages are visible in the virtual environment.
    zno-global-site-packages.txt)rr�dirname�abspath�site�__file__r�exists)�site_mod_dir�no_global_site_packages_files  r�"_no_global_under_legacy_virtualenvr2QsV���7�7�?�?�2�7�7�?�?�4�=�=�#A�B�L�#%�7�7�<�<��%�$� ��7�7�>�>�6�7�7r
c�T�t�r
t�St�r
t�Sy)zHReturns a boolean, whether running in venv with no system site-packages.F)rr)rr2r	r
r�virtualenv_no_globalr4_s%����$�&�&�'�)�1�3�3�r
)�return�bool)r5zlist[str] | None)�
__future__r�loggingr�rer-r�	getLogger�__name__r"�compiler$rrrrr)r2r4r	r
r�<module>r=sb��"��	�	��
�	��	�	�8�	$��&0�b�j�j�?�'�#�
A�'�G�
��:8�
r

Youez - 2016 - github.com/yon3zu
LinuXploit