I'm using
check_call(['dot', '-Tpng', 'tree.dot', '-o', 'tree.png'])
but I got
FileNotFoundError: [Errno 2] No such file or directory: 'dot'
When I specify the path to replace the 'dot'
I got
PermissionError: [Errno 13] Permission denied
I used import os to check my current working directory, it is correct. Why it still says no such file?