In my program, I have a function runScript():
def runScript():
subprocess.call(['echo', 'hello'])
I have seen many similar examples in the Python documentation, so I assumed this would work. However, when I call this function in my program, it returns a WindowsError.
WindowsError: [Error 2] The system cannot find the file specified
Why does this happen? How can I fix it?