Mercurial > repos > guerler > springsuite
view planemo/lib/python3.7/site-packages/virtualenv/app_data/via_tempdir.py @ 1:56ad4e20f292 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
author | guerler |
---|---|
date | Fri, 31 Jul 2020 00:32:28 -0400 |
parents | |
children |
line wrap: on
line source
from __future__ import absolute_import, unicode_literals import logging from tempfile import mkdtemp from virtualenv.util.path import safe_delete from .via_disk_folder import AppDataDiskFolder class TempAppData(AppDataDiskFolder): def __init__(self): super(TempAppData, self).__init__(folder=mkdtemp()) logging.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): logging.debug("remove temporary app data folder %s", self.lock.path) safe_delete(self.lock.path) def embed_update_log(self, distribution, for_py_version): return None @property def transient(self): return True