import tempfile import shutil dir_path = tempfile.mkdtemp() print("Temp directory path - ", dir_path) # ... do stuff with dirpath ..... shutil.rmtree(dir_path)
Temp directory path - C:\Users\pattap\AppData\Local\Temp\tmp5t91gy03
Comment here