at 23.05-pre 1.2 kB view raw
1diff --git a/imageio_ffmpeg/_utils.py b/imageio_ffmpeg/_utils.py 2index 1399cfd..c0eb9be 100644 3--- a/imageio_ffmpeg/_utils.py 4+++ b/imageio_ffmpeg/_utils.py 5@@ -23,33 +23,7 @@ def get_ffmpeg_exe(): 6 if exe: 7 return exe 8 9- plat = get_platform() 10- 11- # 2. Try from here 12- bin_dir = resource_filename("imageio_ffmpeg", "binaries") 13- exe = os.path.join(bin_dir, FNAME_PER_PLATFORM.get(plat, "")) 14- if exe and os.path.isfile(exe) and _is_valid_exe(exe): 15- return exe 16- 17- # 3. Try binary from conda package 18- # (installed e.g. via `conda install ffmpeg -c conda-forge`) 19- if plat.startswith("win"): 20- exe = os.path.join(sys.prefix, "Library", "bin", "ffmpeg.exe") 21- else: 22- exe = os.path.join(sys.prefix, "bin", "ffmpeg") 23- if exe and os.path.isfile(exe) and _is_valid_exe(exe): 24- return exe 25- 26- # 4. Try system ffmpeg command 27- exe = "ffmpeg" 28- if _is_valid_exe(exe): 29- return exe 30- 31- # Nothing was found 32- raise RuntimeError( 33- "No ffmpeg exe could be found. Install ffmpeg on your system, " 34- "or set the IMAGEIO_FFMPEG_EXE environment variable." 35- ) 36+ return '@ffmpeg@' 37 38 39 def _popen_kwargs(prevent_sigint=False):