U eY@sZddlmZddlZddlmZddlmZmZGdddeZ Gdd d eZ dgZ dS) ) annotationsN) NoOpFileLock)AppDataDiskFolderPyInfoStoreDiskcsTeZdZdZdddfdd Zdddd Zddd d Zd d ZddZZ S)ReadOnlyAppDataFstrNone)folderreturncs:tj|s d|d}t|t|t||_dS)Nzread-only app data directory z does not exist)ospathisdir RuntimeErrorsuper__init__rlock)selfr msg __class__K/opt/hc_python/lib/python3.8/site-packages/virtualenv/app_data/read_only.pyr s    zReadOnlyAppData.__init__)r cCsd}t|dS)Nz)read-only app data does not support resetr)rrrrrresetszReadOnlyAppData.resetcCstdSNNotImplementedError)rrrr py_info_clearszReadOnlyAppData.py_info_clearcCs t|j|Sr)_PyInfoStoreDiskReadOnlyZ py_info_at)rr rrrpy_infoszReadOnlyAppData.py_infocCstdSrr)r distributionZfor_py_versionrrrembed_update_logsz ReadOnlyAppData.embed_update_log) __name__ __module__ __qualname__Z can_updaterrrr r" __classcell__rrrrr s rc@seZdZddZdS)rcCsd}t|dS)Nz0read-only app data python info cannot be updatedr)rcontentrrrrwrite#sz_PyInfoStoreDiskReadOnly.writeN)r#r$r%r(rrrrr"sr) __future__ros.pathr Zvirtualenv.util.lockrZvia_disk_folderrrrr__all__rrrrs