In another thread:
elif gbl.playFile:
import tempfile
# Currently MMA requires a file name. It would be nice if it
# could handle file objects...
# Since otherwise we need to throw away the file handle.
#(fd,outfile) = tempfile.mkstemp( prefix="MMA", suffix=".mid" )
outfile = tempfile.mktemp( prefix="MMA", suffix=".mid" )
MMA.exits.files.append(outfile)
[\quote]
Good idea. Any problem with prefix="MMA." ... if the first rnd character is uppercase the "MMA" part tends to get lost
Also, it's not that MMA needs the filename (well, it is sort of), but the player probably will need one as well.
Anyway, I've changed it in paths.py. I'll have a quick look for other temp files and do the same.