Launch another application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KDawg44

    #1

    Launch another application

    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:

    binaryApplicati on 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.

  • Larry Bates

    #2
    Re: Launch another application

    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:
    >
    binaryApplicati on 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

    Comment

    Working...