Launch another application

2007-04-23 Thread KDawg44
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.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Launch another application

2007-04-23 Thread Larry Bates
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
-- 
http://mail.python.org/mailman/listinfo/python-list