[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] launching an app from python?



Hi,

there is nothing wrong with your example (using "start notepad.exe"). It works 
fine on my Windows 98 box. What version of Python are you using and on what 
Windows operating system?

cheers,
John.

On Saturday 27 December 2003 12:31 pm, enrike wrote:
> > i think on windows you can add the "start" command to os.system and it
> > will get forked off. give it a try and cross appropriate fingers.
> >
> > os.system("start notepad.exe")
>
> it didnt make any difference.  the exe doesnt launch until i quit the
> python process.
>
> this is the simple test o did, anything wrong with it maybe?
>
> ###########
> import os
>
> def main():
>
>     os.system("start pc_launcher.exe")
>
>     while 1:
>         pass
>
>
> if __name__ == '__main__': main()
> ###########

--