Launch another application

Larry Bates larry.bates at websafe.com
Mon Apr 23 16:19:46 EDT 2007


KDawg44 wrote:
> Hi,
> 
> I would like to launch another application and pass some arguments to
> it from python.  WHen the user clicks on the button, i want it to
> execute:
> 
> binaryApplication fileName
> 
> Is there a way to do this as if I was doing it from a shell in
> python?  Would it be using something like popen?  this app does not
> need to return anything to the python app i am writing and the python
> app does not need to wait for it (to close or do anyting else).
> 
> Thanks.
> 
Take a look at the subprocess module it is newer and is intended to
replace popen (which still works if you prefer to use it).

-Larry



More information about the Python-list mailing list