You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import os
- import pathlib
-
- from config import conf
-
-
- class TmpDir(object):
- """A temporary directory that is deleted when the object is destroyed."""
-
- tmpFilePath = pathlib.Path("./tmp/")
-
- def __init__(self):
- pathExists = os.path.exists(self.tmpFilePath)
- if not pathExists:
- os.makedirs(self.tmpFilePath)
-
- def path(self):
- return str(self.tmpFilePath) + "/"
|