Generator runner improvement
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user