Replace which with winwhich.

This commit is contained in:
voussoir 2020-01-21 23:50:11 -08:00
parent 317b03dd9f
commit 222d63857e

View file

@ -8,6 +8,8 @@ import string
import traceback import traceback
import warnings import warnings
from voussoirkit import winwhich
# FFmpeg ########################################################################################### # FFmpeg ###########################################################################################
FFMPEG_NOT_FOUND = ''' FFMPEG_NOT_FOUND = '''
@ -18,8 +20,8 @@ Windows: where ffmpeg & where ffprobe
''' '''
def _load_ffmpeg(): def _load_ffmpeg():
ffmpeg_path = shutil.which('ffmpeg') ffmpeg_path = winwhich.which('ffmpeg')
ffprobe_path = shutil.which('ffprobe') ffprobe_path = winwhich.which('ffprobe')
if (not ffmpeg_path) or (not ffprobe_path): if (not ffmpeg_path) or (not ffprobe_path):
warnings.warn(FFMPEG_NOT_FOUND) warnings.warn(FFMPEG_NOT_FOUND)