I want to execute a command python /Users/xx/mail_utils.py in Dart. As you see, I have used absolute python file path.
When I execute above command in terminal, it works. However when I call it in Dart.
Process.run('python /Users/xx/mail_utils.py',['xx']).then((ProcessResult results) {
print(results.stdout);
});
Unhandled exception:
ProcessException: No such file or directory
Command: python /Users/xx/mail_utils.py xx
What's wrong ?