From 765daa150cfd8f694f998ff2e11c371c4b752912 Mon Sep 17 00:00:00 2001 From: hbrain Date: Sun, 31 May 2026 12:18:16 +0000 Subject: [PATCH] Fix movmaker tool_path regression so worker can start jobs --- movmaker.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/movmaker.py b/movmaker.py index e535953..f0550fa 100755 --- a/movmaker.py +++ b/movmaker.py @@ -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