at master 883 B view raw
1--- a/imageio_ffmpeg/_utils.py 2+++ b/imageio_ffmpeg/_utils.py 3@@ -38,28 +38,7 @@ def get_ffmpeg_exe(): 4 5 @lru_cache() 6 def _get_ffmpeg_exe(): 7- plat = get_platform() 8- 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 13- 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 22- 23- # 4. Try system ffmpeg command 24- exe = "ffmpeg" 25- if _is_valid_exe(exe): 26- return exe 27- 28- return None 29+ return "@ffmpeg@" 30 31 32 def _get_bin_dir():