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
With regard to your updated question: The arguments for your subprocess are not passed as individual parameters to call(); rather, they're passed as a single list of strings, like so:
args = ["test.exe", "first_argument", "second_argument"]
Original response: The code as you have it will create a separate process for each element in files. If that's what you want, your code should work. If you want to call the program with all of the files simultaneously, you'll want to concatenate your list:
args = ["test.exe"] + files
subprocess.call(args)