選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

18 行
382B

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