g#pdZddlmZddlmZmZddlmZddlm Z GddeZ Gdd eZ dd gZ y ) z&Application data stored by virtualenv.) annotations)ABCabstractmethod)contextmanager) IS_ZIPAPPceZdZdZedZedZedZedZe dZ edZ e dZ e d Z ed Zedd Zeed ZeedZy )AppDataz:Abstract storage interface for the virtualenv application.cy)zCalled before virtualenv exits.Nselfs G/opt/hc_python/lib/python3.12/site-packages/virtualenv/app_data/base.pyclosez AppData.closecy)z2Called when the user passes in the reset app data.Nr r s rresetz AppData.resetrrctNNotImplementedErrorr paths rpy_infozAppData.py_info!!rctrrr s r py_info_clearzAppData.py_info_clearrrctrrr s r can_updatezAppData.can_updaterrctrr)r distributionfor_py_versions rembed_update_logzAppData.embed_update_log"rrctrrr s rhousez AppData.house&rrctrrr s r transientzAppData.transient*rrctrr)r r"names r wheel_imagezAppData.wheel_image.rrNc#xKtr |j||5}|dddy|y#1swYyxYww)zISome paths might be within the zipapp, unzip these to a path on the disk.N)rextract)r r to_folderresults rensure_extractedzAppData.ensure_extracted2s7 dI.& /.J/.s:.:7:ctrr)r rr-s rr,zAppData.extract; "!rctrrrs rlockedzAppData.locked@r1rr)__name__ __module__ __qualname____doc__rrrrrpropertyrr#r%r'r*rr/r,r3r rrr r sD..AA""""""""""""""""""rr cfeZdZedZedZedZedZeedZ y) ContentStorectrrr s rexistszContentStore.existsGrrctrrr s rreadzContentStore.readKrrctrr)r contents rwritezContentStore.writeOrrctrrr s rremovezContentStore.removeSrrcyrr r s rr3zContentStore.lockedWs rN) r4r5r6rr<r>rArCrr3r rrr:r:Fsl""""""""  rr:N) r7 __future__rabcrr contextlibrvirtualenv.inforr r:__all__r rrrJs<,"#%%8"c8"v 3 0 r