Problem with os.system()

Janos Blazi jblazi at hotmail.com
Fri Sep 28 09:52:34 EDT 2001


I have the following code:

    prog=r'"C:\Programme\Windows Media Player\mplayer2"'
    f=r'c:\WINNT\Media\Microsoft Office 2000\APPLAUSE.WAV'
    os.system(prog+' /Play '+f)

Now first it seems as though it worked and the wav file is played. The
problem is that after the wav file has ben played my program does not regain
the control i.e. the next statement is not executed. If I close the Media
Player window manually, my program resumes. I use Win2000 but my program
should work under MS-DOS.

Can anybody help me?

J.B.




-----=  Posted via Newsfeeds.Com, Uncensored Usenet News  =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
 Check out our new Unlimited Server. No Download or Time Limits!
-----==  Over 80,000 Newsgroups - 19 Different Servers!  ==-----



More information about the Python-list mailing list