o
    $¼"bî  ã                   @   sL   d dl Zd dlmZ ddlmZmZ G dd„ deƒZG dd„ deƒZd	Z	dS )
é    N)ÚNoOpFileLocké   )ÚAppDataDiskFolderÚPyInfoStoreDiskc                   @   s8   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ ZdS )ÚReadOnlyAppDataFc                 C   s(   t j |¡std |¡ƒ‚t|ƒ| _d S )Nz.read-only app data directory {} does not exist)ÚosÚpathÚisdirÚRuntimeErrorÚformatr   Úlock)ÚselfÚfolder© r   ú?/usr/lib/python3/dist-packages/virtualenv/app_data/read_only.pyÚ__init__   s   zReadOnlyAppData.__init__c                 C   ó   t dƒ‚)Nz)read-only app data does not support reset©r
   ©r   r   r   r   Úreset   ó   zReadOnlyAppData.resetc                 C   ó   t ‚©N©ÚNotImplementedErrorr   r   r   r   Úpy_info_clear   ó   zReadOnlyAppData.py_info_clearc                 C   s   t | j|ƒS r   )Ú_PyInfoStoreDiskReadOnlyÚ
py_info_at)r   r   r   r   r   Úpy_info   s   zReadOnlyAppData.py_infoc                 C   r   r   r   )r   ÚdistributionÚfor_py_versionr   r   r   Úembed_update_log   r   z ReadOnlyAppData.embed_update_logN)	Ú__name__Ú
__module__Ú__qualname__Ú
can_updater   r   r   r   r"   r   r   r   r   r      s    r   c                   @   s   e Zd Zdd„ ZdS )r   c                 C   r   )Nz0read-only app data python info cannot be updatedr   )r   Úcontentr   r   r   Úwrite   r   z_PyInfoStoreDiskReadOnly.writeN)r#   r$   r%   r(   r   r   r   r   r      s    r   )r   )
Úos.pathr   Úvirtualenv.util.lockr   Úvia_disk_folderr   r   r   r   Ú__all__r   r   r   r   Ú<module>   s    