stt/wan run.py: prepend homebrew to PATH (job env can't find ffmpeg)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
type-two 2026-07-17 18:42:43 +10:00
parent 110b2298b7
commit 8ea7e8928b
2 changed files with 8 additions and 0 deletions

View File

@ -1,9 +1,13 @@
import argparse
import json
import os
import sys
import time
from pathlib import Path
# job env has a minimal PATH; whisper shells out to ffmpeg
os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "")
ap = argparse.ArgumentParser()
ap.add_argument("--input", action="append", default=[])
ap.add_argument("--outdir", required=True)

View File

@ -4,6 +4,7 @@ cached in RAM between jobs). Frames come back as PNGs; ffmpeg muxes the MP4."""
import argparse
import json
import mimetypes
import os
import random
import subprocess
import sys
@ -13,6 +14,9 @@ import urllib.request
import uuid
from pathlib import Path
# job env has a minimal PATH; we shell out to ffmpeg for the mux
os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "")
ROOT = Path(__file__).resolve().parents[3]
COMFY = ROOT / "vendor" / "comfyui"
API = "http://127.0.0.1:8188"