def setup(self) -> None:
"""
Setup the scratch dir by creating a temporary directory to become the root of all new temporary directories
and files created by this instance.
:return: Nothing
:rtype: :class:`~NoneType`
"""
tempfile.tempdir = self.root
self.wd = self.wd or tempfile.mkdtemp(self.suffix, self.prefix, self.base)
评论列表
文章目录