Skip to content

Commit f0314c9

Browse files
committed
fix DMG not finding FFMPEG
1 parent bfbc668 commit f0314c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gentle/resample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def resample_sox(infile, outfile, offset=None, duration=None):
6868
def resample(infile, outfile, offset=None, duration=None):
6969
if not os.path.isfile(infile):
7070
raise IOError("Not a file: %s" % infile)
71-
if shutil.which(FFMPEG):
71+
if shutil.which(FFMPEG) or os.path.exists(FFMPEG):
7272
return resample_ffmpeg(infile, outfile, offset, duration)
7373
else:
7474
return resample_sox(infile, outfile, offset, duration)

0 commit comments

Comments
 (0)