Fix movmaker tool_path regression so worker can start jobs

This commit is contained in:
hbrain 2026-05-31 12:18:16 +00:00
parent a7fea0a8e8
commit 765daa150c

View file

@ -72,15 +72,10 @@ def load_order_json(directory: Path) -> list[str] | None:
except Exception as e:
console(f"Error reading {ORDER_FILENAME}: {e}")
return None
"""Return the preferred executable path for ffmpeg/ffprobe style tools.
Args:
local_path: Path to a bundled copy shipped with movmaker.
fallback: Name of the system executable to call when the bundled copy is missing.
Returns:
The fully-qualified path to execute.
"""
def tool_path(local_path: Path, fallback: str) -> str:
"""Return preferred executable path for bundled or system tools."""
return str(local_path) if local_path.exists() else fallback