I need to run an application (binary file) and pass arguments using a Python code. Some arguments represent strings got during Python file processing.
for i
args = ['test. exe']
subprocess.call(args, '-f') //Error
should be:
args = ['test.exe', '-f']
subprocess.call(args)
The command line argument should all be inside a single list for the first parameter of subprocess.call. The second argument to call is bufsize, which is supposed to be an integer (hence why you get the error you do)