diff --git a/gentle/resample.py b/gentle/resample.py index 513f7941..a061d794 100644 --- a/gentle/resample.py +++ b/gentle/resample.py @@ -68,7 +68,7 @@ def resample_sox(infile, outfile, offset=None, duration=None): def resample(infile, outfile, offset=None, duration=None): if not os.path.isfile(infile): raise IOError("Not a file: %s" % infile) - if shutil.which(FFMPEG): + if shutil.which(FFMPEG) or os.path.exists(FFMPEG): return resample_ffmpeg(infile, outfile, offset, duration) else: return resample_sox(infile, outfile, offset, duration)