how to create a temporary directory and get the path / file name in python
Use the mkdtemp() function from the tempfile module:
mkdtemp()
tempfile
import tempfile dirpath = tempfile.mkdtemp()
Use module tempfile.