geenforce: import-share recognizes the display scope

This commit is contained in:
2026-07-27 14:54:13 -04:00
parent 90cd85b268
commit 9b133b0cce

View File

@@ -102,11 +102,13 @@ def build_scope(scopename, phase, manifest_dict, iscommon=False):
def discover_share(shareroot):
"""Yield (scopename, phase, manifest_dict) for runtime manifests on a share.
Reads `common/manifest.json` and every `gea-shopfloor-*/manifest.json`.
Skips `.bak` / `.pre-*.bak` variants (only the exact `manifest.json`).
Reads `common/manifest.json`, `display/manifest.json`, and every
`gea-shopfloor-*/manifest.json`. Skips `.bak` / `.pre-*.bak` variants
(only the exact `manifest.json`).
"""
for name in sorted(os.listdir(shareroot)):
if name != 'common' and not name.startswith('gea-shopfloor-'):
if name not in ('common', 'display') \
and not name.startswith('gea-shopfloor-'):
continue
path = os.path.join(shareroot, name, 'manifest.json')
if not os.path.isfile(path):