refactor: recipe modules read the repo root

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 19:38:56 +01:00
1 parent 5f7cbdc582
commit 664776ae91
3 files changed
+7 -8

No files matched your search

+2 -1
View File
@@ -31,6 +31,7 @@ from model.dumpcatalog import DEFAULT_PROVENANCE_DIR, load_provenance_snapshots
from model.database import load_database
from model.profiles import load_emulator_profiles
from core.artifacts import write_if_changed
from core.paths import REPO_ROOT
HASH_FIELDS = ("sha1", "md5", "sha256")
@@ -202,7 +203,7 @@ def _held_in_archive(entry: dict, members: dict) -> bool:
return False
RECIPES_DIR = Path(__file__).resolve().parent.parent / "recipes"
RECIPES_DIR = REPO_ROOT / "recipes"
def romset_index(recipes_dir: Path = RECIPES_DIR) -> dict[tuple[str, int], list[dict]]: