CI: ensure audit script can import project modules

This commit is contained in:
2026-04-26 12:58:57 +02:00
parent 57907f0d1e
commit cfc04b37f4

View File

@@ -3,8 +3,13 @@ from __future__ import annotations
import argparse
import json
import sys
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
def load_json(path: Path) -> dict:
return json.loads(path.read_text())