o $¼"bîã@sLddlZddlmZddlmZmZGdd„deƒZGdd„deƒZd Z dS) éN)Ú NoOpFileLocké)ÚAppDataDiskFolderÚPyInfoStoreDiskc@s8eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd S) ÚReadOnlyAppDataFcCs(tj |¡s td |¡ƒ‚t|ƒ|_dS)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 zReadOnlyAppData.__init__cCótdƒ‚)Nz)read-only app data does not support reset©r ©r rrrÚresetózReadOnlyAppData.resetcCót‚©N©ÚNotImplementedErrorrrrrÚ py_info_clearózReadOnlyAppData.py_info_clearcCs t|j|ƒSr)Ú_PyInfoStoreDiskReadOnlyÚ py_info_at)r rrrrÚpy_infos zReadOnlyAppData.py_infocCrrr)r Ú distributionÚfor_py_versionrrrÚembed_update_logrz ReadOnlyAppData.embed_update_logN) Ú__name__Ú __module__Ú __qualname__Ú can_updaterrrrr"rrrrrs rc@seZdZdd„ZdS)rcCr)Nz0read-only app data python info cannot be updatedr)r ÚcontentrrrÚwriterz_PyInfoStoreDiskReadOnly.writeN)r#r$r%r(rrrrrs r)r) Úos.pathrÚvirtualenv.util.lockrÚvia_disk_folderrrrrÚ__all__rrrrÚs