관리-도구
편집 파일: zipapp.cpython-37.pyc
B ���a � @ s` d dl mZmZ d dlZd dlZd dlZd dlmZmZ d dl m Z dd� Zdd� Zd d � Z dS )� )�absolute_import�unicode_literalsN)�IS_WIN�ROOT)�ensure_textc C sD t | �}t�td��&}|�|��}|�� �d�S Q R X W d Q R X d S )N�rzutf-8)�_get_path_within_zip�zipfile�ZipFiler �open�read�decode)� full_path�sub_file�zip_fileZfile_handler� r �G/opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/zipapp.pyr s r c C sZ t �d| |� t| �}t�td��.}|�|�}|j|_|� |t t|j��� W d Q R X d S )Nzextract %s to %sr ) �logging�debugr r r r �getinfo�name�filename�extractr �str�parent)r �destr r �infor r r r s r c C s: t j�t| ��} | tt�d d � }tr6|�t jd�}|S )N� �/) �os�path�abspathr �lenr r �replace�sep)r r r r r r s r )� __future__r r r r r Zvirtualenv.infor r Zvirtualenv.util.sixr r r r r r r r �<module> s