Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tempfile.TemporaryDirectory example
with tempfile.TemporaryDirectory() as workdir:
project_dirname = "project"
project_dir = os.path.join(workdir, project_dirname)
os.mkdir(project_dir)
# do esoteric work within that temporary workdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.