refactor: public names for cross-module reads

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 22:59:51 +01:00
1 parent f371790dc6
commit 3853ca2f1c
254 files changed
+2955 -2969

No files matched your search

+2 -2
View File
@@ -32,9 +32,9 @@ def _pack_path(platform_name: str) -> str | None:
"""Path of the platform's full pack, by the exact name the builder writes."""
if not os.path.isdir(DIST_DIR):
return None
from packs.naming import _expected_pack_names
from packs.naming import expected_pack_names
names = _expected_pack_names([platform_name], PLATFORMS_DIR, [], None)
names = expected_pack_names([platform_name], PLATFORMS_DIR, [], None)
for entry in sorted(names[platform_name]):
path = os.path.join(DIST_DIR, entry)
if os.path.isfile(path):