opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
virtualenv
/
app_data
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] __pycache__
N/A
__init__.py
1.43 KB
Rename
Delete
base.py
2.03 KB
Rename
Delete
na.py
1.46 KB
Rename
Delete
read_only.py
1.09 KB
Rename
Delete
via_disk_folder.py
5.34 KB
Rename
Delete
via_tempdir.py
811 bytes
Rename
Delete
from __future__ import annotations import logging from tempfile import mkdtemp from virtualenv.util.path import safe_delete from .via_disk_folder import AppDataDiskFolder LOGGER = logging.getLogger(__name__) class TempAppData(AppDataDiskFolder): transient = True can_update = False def __init__(self) -> None: super().__init__(folder=mkdtemp()) LOGGER.debug("created temporary app data folder %s", self.lock.path) def reset(self): """This is a temporary folder, is already empty to start with.""" def close(self): LOGGER.debug("remove temporary app data folder %s", self.lock.path) safe_delete(self.lock.path) def embed_update_log(self, distribution, for_py_version): raise NotImplementedError __all__ = [ "TempAppData", ]
Save