mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix audio recording on osx
This commit is contained in:
parent
09dbbecf3a
commit
bde46a94f6
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue