HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/virtualenv/util/__pycache__/zipapp.cpython-310.pyc
o

3�h��@sbddlmZddlZddlZddlZddlmZmZe�e	�Z
dd�Zdd�Zdd	�Z
ddgZdS)
�)�annotationsN)�IS_WIN�ROOTc	Cs�t|�}t�td��,}|�|��}|���d�Wd�Wd�S1s)wYWd�dS1s9wYdS)N�rzutf-8)�_get_path_within_zip�zipfile�ZipFiler�open�read�decode)�	full_path�sub_file�zip_file�file_handler�r�A/usr/local/lib/python3.10/dist-packages/virtualenv/util/zipapp.pyr
sR�r
cCslt�d||�t|�}t�td��}|�|�}|j|_|�	|t
|j��Wd�dS1s/wYdS)Nzextract %s to %sr)�LOGGER�debugrrrr�getinfo�name�filename�extract�str�parent)r�destr
r�inforrrrs
"�rcCsptj�tj�t|���}t�tj��}|�|�s%d|�d|�d�}t|��|t	|�d�}t
r6|�tjd�}|S)Nz
full_path=z should start with prefix=�.�/)�os�path�realpath�abspathrr�sep�
startswith�RuntimeError�lenr�replace)r�prefix�msgr
rrrrs
r)�
__future__r�loggingrr�virtualenv.inforr�	getLogger�__name__rr
rr�__all__rrrr�<module>s
	�