관리-도구
편집 파일: via_disk_folder.cpython-37.pyc
B ���a� � @ s� d Z ddlmZmZ ddlZddlZddlmZ ddlm Z ddl mZ ddlZddl mZ ddlmZ dd lmZ dd lmZ ddlmZ dd lmZmZ G dd� de�Ze�e�G dd� de��ZG dd� de�ZG dd� de�ZdS )u� A rough layout of the current storage goes as: virtualenv-app-data ├── py - <version> <cache information about python interpreters> │ └── *.json/lock ├── wheel <cache wheels used for seeding> │ ├── house │ │ └── *.whl <wheels downloaded go here> │ └── <python major.minor> -> 3.9 │ ├── img-<version> │ │ └── image │ │ └── <install class> -> CopyPipInstall / SymlinkPipInstall │ │ └── <wheel name> -> pip-20.1.1-py2.py3-none-any │ └── embed │ └── 3 -> json format versioning │ └── *.json -> for every distribution contains data about newer embed versions and releases └─── unzip <in zip app we cannot refer to some internal files, so first extract them> └── <virtualenv version> ├── py_info.py ├── debug.py └── _virtualenv.py � )�absolute_import�unicode_literalsN)�ABCMeta)�contextmanager)�sha256)�ReentrantFileLock)�safe_delete)�ensure_text)�extract)�__version__� )�AppData�ContentStorec @ s� e Zd ZdZdZdZdd� Zdd� Zdd � Zd d� Z dd � Z edd� �Zedd� �Z edd� �Zdd� Zdd� Zdd� Zedd� �Zdd� ZdS )�AppDataDiskFolderzH Store the application data on the disk within a folder layout. FTc C s t |�| _d S )N)r �lock)�self�folder� r �T/opt/alt/python37/lib/python3.7/site-packages/virtualenv/app_data/via_disk_folder.py�__init__4 s zAppDataDiskFolder.__init__c C s d� t| �j| jj�S )Nz{}({}))�format�type�__name__r �path)r r r r �__repr__7 s zAppDataDiskFolder.__repr__c C s t | jj�S )N)�strr r )r r r r �__str__: s zAppDataDiskFolder.__str__c C s t �d| jj� t| jj� d S )Nzreset app data folder %s)�logging�debugr r r )r r r r �reset= s zAppDataDiskFolder.resetc C s dS )z do nothingNr )r r r r �closeA s zAppDataDiskFolder.closec c s&