File size: 613 Bytes
d386e09 20b9092 d386e09 20b9092 d386e09 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# ..
import os
import io
import sys
import tempfile
temp_dir = os.path.join(tempfile.gettempdir(), "")
print("Press any key to start cleaning...")
os.system("pause")
print("Are you sure?")
os.system("pause")
os.system(f"rmdir /s /q \"../outputs\"")
os.system(f"rmdir /s /q outputs")
os.system(f"del out*.7z")
std = os.path.join(temp_dir, "gradio")
os.system(f"rmdir /s /q {std}")
std = os.path.join(temp_dir, "iib_cache")
os.system(f"rmdir /s /q {std}")
std = os.path.join(temp_dir, "Safe Transaction")
os.system(f"rmdir /s /q {std}")
print("Done.")
os.system("pause")
sys.exit(1)
|