play a midi file from the interpreter?

Max M maxm at mxm.dk
Mon Aug 30 02:57:37 EDT 2004


Elaine Jackson wrote:
> (How) can you make it so that a function invoked in the python interpreter can
> run another program? (Like the webbrowser module does, only not with a web
> browser.) If it matters the OS is Windows98 and the specific aim in mind is to
> have a function that saves some data as a midi file and then causes the said
> midi file to play.


Use the popen() call in the os module.

regards Max M



More information about the Python-list mailing list