INNER CODE UNIT · Python
main
pydna-group/pydna · run_test.py:20
def main() -> int:
# ------------------------------------------------------------------
# Anchor execution to project root
# ------------------------------------------------------------------
ROOT = Path(__file__).resolve().parent
os.chdir(ROOT)
# ------------------------------------------------------------------
# Clean previous coverage artifacts
# ------------------------------------------------------------------
Path("coverage.xml").unlink(missing_ok=True)
Path(".coverage").unlink(missing_ok=True)
prof_path = ROOT / Path("prof/combined.prof")
prof_path.parent.mkdir(parents=True, exist_ok=True)
prof_path.write_bytes(b"")