Starting seperate programs

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Aug 12 07:23:46 CEST 2008


En Thu, 07 Aug 2008 10:03:59 -0300, David Dean <david.dean at geotate.com>  
escribi�:

> Is there a way for a python program start another python program, and  
> then continue, without waiting for the second program to finish?
> os.startfile() seems to be what I want on windows, but I need it to work  
> on linux and mac as well.
> Is there a function that does essentially the same as startfile, but  
> without needing an associtated program (i.e. asking for one)?

os.system("python other_program.py")
You may want to replace that "python" with sys.executable.

-- 
Gabriel Genellina




More information about the Python-list mailing list