From bde46a94f64b203dc600c6bb475f3469877cb522 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 6 Feb 2009 18:34:35 +0900 Subject: [PATCH] fix audio recording on osx --- anki/sound.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/anki/sound.py b/anki/sound.py index 6a13ac24e..493df3351 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -74,6 +74,10 @@ if sys.platform == "win32": else: si = None +if sys.platform.startswith("darwin"): + # make sure lame, which is installed in /usr/local/bin, is in the path + os.environ['PATH'] += ":" + "/usr/local/bin" + def retryWait(proc): # osx throws interrupted system call errors frequently while 1: