From b165ef3980482d31892de1ee8ed3c1973035db99 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 19 Jul 2012 21:00:28 +0900 Subject: [PATCH] fix another tmpdir() reference --- anki/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sound.py b/anki/sound.py index c4940ead2..b4cc0df09 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -161,7 +161,7 @@ def queueMplayer(path): # mplayer on windows doesn't like the encoding, so we create a # temporary file instead. oddly, foreign characters in the dirname # don't seem to matter. - dir = unicode(tmpdir(), sys.getfilesystemencoding()) + dir = tmpdir() name = os.path.join(dir, "audio%s%s" % ( random.randrange(0, 1000000), os.path.splitext(path)[1])) f = open(name, "wb")