B aQ@s|dZddlmZmZddlmZmZddlmZddl Z ddl m Z e eGddde Ze eGd d d e ZdS) z( Application data stored by virtualenv. )absolute_importunicode_literals)ABCMetaabstractmethod)contextmanagerN) IS_ZIPAPPc@seZdZdZeddZeddZeddZedd Ze d d Z ed d Z e ddZ e ddZ eddZedddZeeddZeeddZdS)AppDataz9Abstract storage interface for the virtualenv applicationcCsdS)zcalled before virtualenv exitsN)selfr r I/opt/alt/python37/lib/python3.7/site-packages/virtualenv/app_data/base.pyclosesz AppData.closecCsdS)z1called when the user passes in the reset app dataNr )r r r r resetsz AppData.resetcCstdS)N)NotImplementedError)r pathr r r py_infoszAppData.py_infocCstdS)N)r)r r r r py_info_clearszAppData.py_info_clearcCstdS)N)r)r r r r can_update"szAppData.can_updatecCstdS)N)r)r distributionfor_py_versionr r r embed_update_log&szAppData.embed_update_logcCstdS)N)r)r r r r house*sz AppData.housecCstdS)N)r)r r r r transient.szAppData.transientcCstdS)N)r)r rnamer r r wheel_image2szAppData.wheel_imageNc cs.tr$||| }|VWdQRXn|VdS)zHSome paths might be within the zipapp, unzip these to a path on the diskN)rextract)r r to_folderresultr r r ensure_extracted6szAppData.ensure_extractedcCstdS)N)r)r rrr r r r?szAppData.extractcCstdS)N)r)r rr r r lockedDszAppData.locked)N)__name__ __module__ __qualname____doc__rr r rrpropertyrrrrrrrrrr r r r rs           rc@sLeZdZeddZeddZeddZeddZeed d Z d S) ContentStorecCstdS)N)r)r r r r existsLszContentStore.existscCstdS)N)r)r r r r readPszContentStore.readcCstdS)N)r)r contentr r r writeTszContentStore.writecCstdS)N)r)r r r r removeXszContentStore.removecCsdS)Nr )r r r r r\szContentStore.lockedN) rr r!rr%r&r(r)rrr r r r r$Js     r$)r" __future__rrabcrr contextlibrZsixZvirtualenv.inforZ add_metaclassobjectrr$r r r r s  ;