File manager - Edit - /usr/local/lib/python3.10/dist-packages/virtualenv/util/__pycache__/zipapp.cpython-310.pyc
Back
o }h� � @ sb d dl mZ d dlZd dlZd dlZd dlmZmZ e�e �Z dd� Zdd� Zdd � Z ddgZdS ) � )�annotationsN)�IS_WIN�ROOTc C s� t | �}t�td��,}|�|��}|�� �d�W d � W d � S 1 s)w Y W d � d S 1 s9w Y d S )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 c C sl t �d| |� t| �}t�td��}|�|�}|j|_|� |t |j�� W d � d S 1 s/w Y d S )Nzextract %s to %sr )�LOGGER�debugr r r r �getinfo�name�filename�extract�str�parent)r �destr r �infor r r r s "�r c C sp t j�t j�t| ���} t� t j� �}| �|�s%d| � d|� d�}t|��| t |�d � }t r6|�t jd�}|S )Nz full_path=z should start with prefix=�.�/)�os�path�realpath�abspathr r �sep� startswith�RuntimeError�lenr �replace)r �prefix�msgr r r r r s r )� __future__r �loggingr r �virtualenv.infor r � getLogger�__name__r r r r �__all__r r r r �<module> s �
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings