Answer the question
In order to leave comments, you need to log in
How to run exe with arguments from py script?
I have an .exe in the folder with the .py script, it processes some images that are in other folders. This requires os.system("command"). So what is the correct way to compose this cmd line if I need to pass some keys + there are spaces in the image path?
Answer the question
In order to leave comments, you need to log in
os.system("command arg1 arg2")
import subprocess
subprocess.call(['command', 'arg1', 'arg2'])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question