fix: name the recipes folder once in core.paths

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 03:23:46 +01:00
1 parent b3fa7fe136
commit e21c3478b4
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ DB_FILE = "database.json"
PLATFORMS_DIR = "platforms"
EMULATORS_DIR = "emulators"
BIOS_DIR = "bios"
RECIPES_DIR = "recipes"
# The data directory registry refresh_data_dirs, the packs and the checks read.
DATA_DIRS_FILE = f"{PLATFORMS_DIR}/_data_dirs.yml"
# Where generate_truth writes its models and diff_truth and export_native read them.
+2 -1
View File
@@ -51,6 +51,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from core.cli import add_repo_inputs, require_directory
from core.paths import RECIPES_DIR
from model.database import load_database
from romrecipes.ledger import ARCHIVES_FILE
from romrecipes.runs import run_build, run_capture
@@ -76,7 +77,7 @@ def build_parser() -> argparse.ArgumentParser:
add_repo_inputs(parser, "bios", "platforms", "emulators", "db")
parser.add_argument(
"--dat-recipes",
default="recipes",
default=RECIPES_DIR,
help="recipe snapshot file, or a directory of them",
)
parser.add_argument(
+2 -1
View File
@@ -40,6 +40,7 @@ from datetime import datetime, timezone
from pathlib import Path
from typing import IO
from core.paths import RECIPES_DIR
from core.ziptools import is_archive_path, zip_members
from model.registry import list_registered_platforms
from model.profiles import load_emulator_profiles
@@ -61,7 +62,7 @@ from .listxml import (
from .logiqx_parser import LogiqxDat, parse_logiqx
SOURCES = ("mame", "fbneo")
DEFAULT_OUTPUT = "recipes/{source}.json"
DEFAULT_OUTPUT = f"{RECIPES_DIR}/{{source}}.json"
def relevant_archives(emulators_dir: str, platforms_dir: str) -> set[str]: