build: add Nix path to ffmpeg locations on macOS (#990)

* Add Nix path to ffmpeg locations on macOS

* Add 'os' import
This commit is contained in:
Thibault Maekelbergh
2025-08-05 00:02:14 +02:00
committed by GitHub
parent 1ee1ccbe8d
commit 1459f79b23

View File

@@ -4,6 +4,7 @@
import contextlib
import json
import os
import platform
import subprocess
from shutil import which
@@ -15,7 +16,13 @@ from tagstudio.qt.helpers.silent_popen import silent_Popen, silent_run
logger = structlog.get_logger(__name__)
FFMPEG_MACOS_LOCATIONS: list[str] = ["", "/opt/homebrew/bin/", "/usr/local/bin/"]
user = os.environ["USER"]
FFMPEG_MACOS_LOCATIONS: list[str] = [
"",
"/opt/homebrew/bin/",
"/usr/local/bin/",
f"/etc/profiles/per-user/{user}/bin",
]
def _get_ffprobe_location() -> str: