refactor: break the launchers and layout cycle

resolve.layout imported resolve.launchers inside functions, and
launchers imported the outer roots back from layout inside functions:
the cycle common.py and launchers.py had. The outer roots and
outer_layout read only the platform config, so they move to
model.declarations beside declared_root, and launchers imports them at
the top.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 11:39:59 +01:00
1 parent c764d9abf1
commit bcb99cf761
10 files changed
+68 -73

No files matched your search

+6 -6
View File
@@ -23,6 +23,7 @@ on:
- "scripts/core/paths.py"
- "scripts/core/romdir.py"
- "scripts/core/sect233r1.py"
- "scripts/core/torrentzip.py"
- "scripts/core/ziptools.py"
- "scripts/cross_reference.py"
- "scripts/dedup.py"
@@ -34,6 +35,7 @@ on:
- "scripts/indexnow.py"
- "scripts/manifestselect.py"
- "scripts/measurement_records.py"
- "scripts/model/__init__.py"
- "scripts/model/alternatives.py"
- "scripts/model/cliargs.py"
- "scripts/model/composition.py"
@@ -43,7 +45,9 @@ on:
- "scripts/model/largefiles.py"
- "scripts/model/platforms.py"
- "scripts/model/profiles.py"
- "scripts/model/region.py"
- "scripts/model/registry.py"
- "scripts/model/retired.py"
- "scripts/model/safeparse.py"
- "scripts/model/sources.py"
- "scripts/model/systems.py"
@@ -56,7 +60,6 @@ on:
- "scripts/pr_checks.py"
- "scripts/provenance_report.py"
- "scripts/refresh_data_dirs.py"
- "scripts/region.py"
- "scripts/release_record.py"
- "scripts/resolve/__init__.py"
- "scripts/resolve/archives.py"
@@ -68,22 +71,20 @@ on:
- "scripts/resolve/directories.py"
- "scripts/resolve/gamedata.py"
- "scripts/resolve/grouping.py"
- "scripts/resolve/launcherrefs.py"
- "scripts/resolve/launchers.py"
- "scripts/resolve/layout.py"
- "scripts/resolve/localfile.py"
- "scripts/resolve/nativemode.py"
- "scripts/resolve/ownership.py"
- "scripts/resolve/reconcile.py"
- "scripts/resolve/regions.py"
- "scripts/resolve/slot.py"
- "scripts/resolve/standalone.py"
- "scripts/resolve/truth.py"
- "scripts/resolve/validation.py"
- "scripts/restore_large_files.py"
- "scripts/retired_files.py"
- "scripts/romset_recipes.py"
- "scripts/scraper/base_scraper.py"
- "scripts/scraper/configgen_launchers.py"
- "scripts/scraper/shell_launchers.py"
- "scripts/site_markdown.py"
- "scripts/siteagents.py"
- "scripts/sitebootstrap.py"
@@ -105,7 +106,6 @@ on:
- "scripts/slots.py"
- "scripts/sourceref.py"
- "scripts/split_pack.py"
- "scripts/torrentzip.py"
- "scripts/upstream.py"
- "scripts/validate_pr.py"
- "scripts/validate_schemas.py"