Nov-19-2018, 08:58 PM
For subprocess.call, the first argument is the command you're calling, with args in subsequent elements. In this case, the first element should only be "convert". Args are then passed to it, and will be escaped/quoted as needed for you.
From the docs:
From the docs:
>>> import subprocess >>> help(subprocess.call) Help on function call in module subprocess: call(*popenargs, timeout=None, **kwargs) Run command with arguments. Wait for command to complete or timeout, then return the returncode attribute. The arguments are the same as for the Popen constructor. Example: retcode = call(["ls", "-l"]) >>>