I used to be able to do a subprocess.call([\"command\",\"-option value -option value\"])
and it would work there was a change to the command to work properly
You'll need to specify shell=True
to get subprocess.call to interpret the string.
See the note in the subprocess.Popen constructor documentation (the subprocess.call method takes the same arguments as the subprocess.Popen constructor).
Avoid shell=True
if you can -- it's a security risk. For this purpose, shlex.split suffices:
import subprocess
import shlex
subprocess.call(shlex.split("command -option value -option value"))