golden hour
/usr/local/lib/python3.6/site-packages/virtualenv/util/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-36.pyc
145 B
Del
OK
error.cpython-36.pyc
625 B
Del
OK
lock.cpython-36.pyc
5.86 KB
Del
OK
zipapp.cpython-36.pyc
1.06 KB
Del
OK
Edit: zipapp.cpython-36.pyc
3 ��f� � @ sL d dl Z d dlZd dlZd dlmZmZ dd� Zdd� Zdd� ZddgZ dS ) � N)�IS_WIN�ROOTc C sD t | �}tjtd��&}|j|��}|j� jd�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 �</tmp/pip-build-ni_5055i/virtualenv/virtualenv/util/zipapp.pyr s r c C sV t jd| |� t| �}tjtd��*}|j|�}|j|_|j |t |j�� W d Q R X d S )Nzextract %s to %sr )�logging�debugr r r r �getinfo�name�filename�extract�str�parent)r �destr r �infor r r r s r c C s: t jjt| ��} | tt�d d � }tr6|jt jd�}|S )N� �/) �os�path�abspathr �lenr r �replace�sep)r r r r r r s r ) r r r Zvirtualenv.infor r r r r �__all__r r r r �<module> s
Save