newbie question: starting external application(win)?

Peter Hansen peter at engcorp.com
Thu Dec 9 08:38:19 EST 2004


Frank Esselbach wrote:
> Hello,
> 
> I'am new in python. I need informations, how its possible run another
> (non-python) exe file from python without terminate the python system.
> 
> I have googeled, but could not find informations that I can understand.
> The most informations comes from unix/linux butIneed this for win32.

There's a variety of options, ranging from os.popen and os.system
through spawn, the new in 2.4 subprocess module, and os.startfile.

Which one is best for you might depend on specifics.  You can
either read the docs for the "os" module or "subprocess", or
tell us more detail.  What exe are you trying to run, and how
are you doing it now which is "terminating the python system"?

-Peter



More information about the Python-list mailing list