您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
406B

  1. import os
  2. import pathlib
  3. from config import conf
  4. class TmpDir(object):
  5. """A temporary directory that is deleted when the object is destroyed."""
  6. tmpFilePath = pathlib.Path("./tmp/")
  7. def __init__(self):
  8. pathExists = os.path.exists(self.tmpFilePath)
  9. if not pathExists:
  10. os.makedirs(self.tmpFilePath)
  11. def path(self):
  12. return str(self.tmpFilePath) + "/"