mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-03 08:39:12 +00:00
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:
committed by
GitHub
parent
1ee1ccbe8d
commit
1459f79b23
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user