B ´ÊÑaîã@sLddlZddlmZddlmZmZGdd„deƒZGdd„deƒZd Z dS) éN)Ú NoOpFileLocké)ÚAppDataDiskFolderÚPyInfoStoreDiskc@s8eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd S) ÚReadOnlyAppDataFcCs(tj |¡std |¡ƒ‚t|ƒ|_dS)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__cCs tdƒ‚dS)Nz)read-only app data does not support reset)r )r rrrÚresetszReadOnlyAppData.resetcCst‚dS)N)ÚNotImplementedError)r rrrÚ py_info_clearszReadOnlyAppData.py_info_clearcCs t|j|ƒS)N)Ú_PyInfoStoreDiskReadOnlyZ py_info_at)r rrrrÚpy_infoszReadOnlyAppData.py_infocCst‚dS)N)r)r Ú distributionZfor_py_versionrrrÚembed_update_logsz ReadOnlyAppData.embed_update_logN) Ú__name__Ú __module__Ú __qualname__Z can_updaterrrrrrrrrrs rc@seZdZdd„ZdS)rcCs tdƒ‚dS)Nz0read-only app data python info cannot be updated)r )r ÚcontentrrrÚwritesz_PyInfoStoreDiskReadOnly.writeN)rrrrrrrrrsr)r) Úos.pathrZvirtualenv.util.lockrZvia_disk_folderrrrrÚ__all__rrrrÚs