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