Generator runner improvement

This commit is contained in:
Johnny Fernandes
2026-04-30 03:21:49 +01:00
parent bb3dfb92d5
commit d75272cf84
4 changed files with 16 additions and 22 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from pipeline.orchestrator import EphemeralVastRunner, RunOptions
# Accept one or more config files, or a single directory (all *.json inside, sorted)
def _resolve_configs(raw: list[str]) -> list[Path]:
if len(raw) == 1 and Path(raw[0]).is_dir():
configs = sorted(Path(raw[0]).glob("*.json"))
configs = sorted(p for p in Path(raw[0]).glob("*.json") if not p.name.startswith("_"))
if not configs:
raise ValueError(f"No JSON configs found in directory: {raw[0]}")
return configs