I have a tool which returns me some info about the machine I am running on.On the normal command line it would be something like -
sudo /path-to-tool-directory/tool arg
and this works fine .Now when I break this up and include this in my python script as
result = subprocess.call (["sudo /path-to-tool-directory/tool","arg"])
it throws me an error
subprocess.py in line XYZ ,
in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
any clue what might be going wrong here?