관리-도구
편집 파일: read_only.cpython-38.pyc
U *�eY � @ sZ d dl mZ d dlZd dlmZ ddlmZmZ G dd� de�Z G dd � d e�Z dgZdS ) � )�annotationsN)�NoOpFileLock� )�AppDataDiskFolder�PyInfoStoreDiskc sT e Zd ZdZddd�� fdd�Zdd�dd �Zdd�d d�Zdd � Zdd� Z� Z S )�ReadOnlyAppDataF�str�None)�folder�returnc s: t j�|�s d|� d�}t|��t� �|� t|�| _d S )Nzread-only app data directory z does not exist)�os�path�isdir�RuntimeError�super�__init__r �lock)�selfr �msg�� __class__� �K/opt/hc_python/lib/python3.8/site-packages/virtualenv/app_data/read_only.pyr s zReadOnlyAppData.__init__)r c C s d}t |��d S )Nz)read-only app data does not support reset�r )r r r r r �reset s zReadOnlyAppData.resetc C s t �d S �N��NotImplementedError)r r r r � py_info_clear s zReadOnlyAppData.py_info_clearc C s t | j|�S r )�_PyInfoStoreDiskReadOnlyZ py_info_at)r r r r r �py_info s zReadOnlyAppData.py_infoc C s t �d S r r )r �distributionZfor_py_versionr r r �embed_update_log s z ReadOnlyAppData.embed_update_log) �__name__� __module__�__qualname__Z can_updater r r r r"