Skip to content

Commit

Permalink
fix DMG not finding FFMPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahayu committed Mar 2, 2023
1 parent bfbc668 commit f0314c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gentle/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0314c9

Please sign in to comment.