emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / imageio-ffmpeg / ffmpeg-path.patch
blobaef4d1f2364fcf361e3d79dd254d8ed0393e5b66
1 --- a/imageio_ffmpeg/_utils.py
2 +++ b/imageio_ffmpeg/_utils.py
3 @@ -38,28 +38,7 @@ def get_ffmpeg_exe():
5 @lru_cache()
6 def _get_ffmpeg_exe():
7 - plat = get_platform()
9 - # 2. Try from here
10 - exe = os.path.join(_get_bin_dir(), FNAME_PER_PLATFORM.get(plat, ""))
11 - if exe and os.path.isfile(exe) and _is_valid_exe(exe):
12 - return exe
14 - # 3. Try binary from conda package
15 - # (installed e.g. via `conda install ffmpeg -c conda-forge`)
16 - if plat.startswith("win"):
17 - exe = os.path.join(sys.prefix, "Library", "bin", "ffmpeg.exe")
18 - else:
19 - exe = os.path.join(sys.prefix, "bin", "ffmpeg")
20 - if exe and os.path.isfile(exe) and _is_valid_exe(exe):
21 - return exe
23 - # 4. Try system ffmpeg command
24 - exe = "ffmpeg"
25 - if _is_valid_exe(exe):
26 - return exe
28 - return None
29 + return "@ffmpeg@"
32 def _get_bin_dir():