Parameters for a Python executable [closed]

1

I would like to know how to pass parameters to an executable file in python .

I have a python script that will call an executable and I need to pass two parameters to this executable.

I can call the executable with os.system or subprocess* , what I can not do is to pass the parameters, for example with subprocess_call it calls the executable but is waiting to pass the parameters, parameters in the syntax.

An example of what I've tried:

#!/usr/bin/python

import subprocess

subprocess.call(["dgTQ0126L028.exe","TQ0126L028.0000","/scratchout/teste_python"])

It even calls the executable dgTQ0126L028.exe , but does not use the parameters I am passing TQ0126L028.0000 and /scratchout/teste_python

    
asked by anonymous 17.01.2017 / 12:27

0 answers