Execute an external application from inside a python script

Dag Sunde dag at orion.no
Fri Jan 26 18:51:53 EST 2001


This is one way, that works ok in a WIN env.:

  os.system('CMD /C "' + fileToRun + '"')

Dag

"Arild Hansen" <arildh at stud.cs.uit.no> wrote in message
news:Pine.LNX.4.21.0101261225110.6125-100000 at arildh.pasta.cs.uit.no...
> Hello,
>
> How do I execute an (executable) application from inside some python
code,
> and how do I terminate this application? All help greatly appreciated.
>
> A. Hansen
>





More information about the Python-list mailing list