()
Prepare a temporary directory, cleanup when done
Prepare a temporary directory, cleanup when done
Prepare a temporary directory cleanup when done
def TemporaryDirectory():  # noqa: N802
    "Prepare a temporary directory, cleanup when done"
    try:
        tmpdir = tempfile.mkdtemp()
        yield tmpdir
    finally:
        shutil.rmtree(tmpdir)
def TemporaryDirectory ( ) : # noqa: N802 try : tmpdir = tempfile . mkdtemp ( ) yield tmpdir finally : shutil . rmtree ( tmpdir )