Files
alkane-benchmarks/ci/cleanup.py
T
Alkane CI 78f1f82b38
next-site-candidate / validate-and-candidate (push) Canceled after 0s
Add honest badges for public benchmark repository
2026-10-16 08:38:26 -06:00

14 lines
373 B
Python

#!/usr/bin/env python3
"""Remove generated Python work from this checkout."""
from pathlib import Path
import shutil
cache = Path(__file__).resolve().parent / "__pycache__"
if cache.exists():
if cache.is_symlink() or cache.name != "__pycache__":
raise SystemExit("unsafe Python cache path")
shutil.rmtree(cache)
print("Removed site CI Python cache")