I am trying to run a program to make some system calls inside Python code using subprocess.call() which throws the following error:
Traceback (m
Use shell=True if you're passing a string to subprocess.call.
From docs:
If passing a single string, either
shellmust beTrueor else the string must simply name the program to be executed without specifying any arguments.
subprocess.call(crop, shell=True)
or:
import shlex
subprocess.call(shlex.split(crop))