Re: call an exturnal program in python

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

    Re: call an exturnal program in python

    Adam wrote:
    I am trying to run an external program in my code using
    os.system('exen ame -exearg') but the exe has an "&" in it so windows
    thinks it's two commands any way around this?
    >
    Have you tries quoting the exename:

    os.system('"exe name" -exearg')

    That might help. How do you run it from the command line?

    You might be better using subprocess.call (), since that allows you to
    run subprocesses without the shell interpreting the command line.

    regards
    Steve
    --
    Steve Holden +1 571 484 6266 +1 800 494 3119
    Holden Web LLC http://www.holdenweb.com/

Working...