Launch another application

K

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.
 
L

Larry Bates

KDawg44 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top