관리-도구
편집 파일: read_only.cpython-37.pyc
B ���a� � @ sL d dl Zd dlmZ ddlmZmZ G dd� de�ZG dd� de�Zd Z dS ) � N)�NoOpFileLock� )�AppDataDiskFolder�PyInfoStoreDiskc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �ReadOnlyAppDataFc C s( t j�|�std�|���t|�| _d S )Nz.read-only app data directory {} does not exist)�os�path�isdir�RuntimeError�formatr �lock)�selfZfolder� r �N/opt/alt/python37/lib/python3.7/site-packages/virtualenv/app_data/read_only.py�__init__ s zReadOnlyAppData.__init__c C s t d��d S )Nz)read-only app data does not support reset)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 )N)�_PyInfoStoreDiskReadOnlyZ py_info_at)r r r r r �py_info s zReadOnlyAppData.py_infoc C s t �d S )N)r )r �distributionZfor_py_versionr r r �embed_update_log s z ReadOnlyAppData.embed_update_logN) �__name__� __module__�__qualname__Z can_updater r r r r r r r r r s r c @ s e Zd Zdd� ZdS )r c C s t d��d S )Nz0read-only app data python info cannot be updated)r )r �contentr r r �write s z_PyInfoStoreDiskReadOnly.writeN)r r r r r r r r r s r )r ) �os.pathr Zvirtualenv.util.lockr Zvia_disk_folderr r r r �__all__r r r r �<module> s