From e578ffc721c1abcb7f1659bfdd2d26b7bb64df42 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 13 Jun 2009 16:01:58 +0900 Subject: [PATCH] map all file descriptors to work with py2exe --- anki/sound.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/sound.py b/anki/sound.py index 33f2e6e43..27b36855a 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -144,7 +144,8 @@ class MplayerMonitor(threading.Thread): def startProcess(self): try: self.mplayer = subprocess.Popen( - mplayerCmd, startupinfo=si, stdin=subprocess.PIPE) + mplayerCmd, startupinfo=si, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, stderr=subprocess.STDOUT) except OSError: raise Exception("Audio player not found")