python-template/.github/scripts/normalize_coverage.py

12 lines
231 B
Python
Raw Normal View History

2024-06-30 21:11:55 +00:00
from __future__ import annotations
import sqlite3
connection = sqlite3.connect(".coverage")
# Normalize windows paths
connection.execute("UPDATE file SET path = REPLACE(path, '\\', '/')")
connection.commit()
connection.close()