fix another tmpdir() reference

This commit is contained in:
Damien Elmes 2012-07-19 21:00:28 +09:00
parent f56c2156a2
commit b165ef3980

View file

@ -161,7 +161,7 @@ def queueMplayer(path):
# mplayer on windows doesn't like the encoding, so we create a # mplayer on windows doesn't like the encoding, so we create a
# temporary file instead. oddly, foreign characters in the dirname # temporary file instead. oddly, foreign characters in the dirname
# don't seem to matter. # don't seem to matter.
dir = unicode(tmpdir(), sys.getfilesystemencoding()) dir = tmpdir()
name = os.path.join(dir, "audio%s%s" % ( name = os.path.join(dir, "audio%s%s" % (
random.randrange(0, 1000000), os.path.splitext(path)[1])) random.randrange(0, 1000000), os.path.splitext(path)[1]))
f = open(name, "wb") f = open(name, "wb")