Python's subprocess.Popen() and source
You can use strace
to help diagnose problems like this. In this case running it with the -ff
flag to follow subprocess would have revealed that your code was looking for "houdini_setup" in the wrong place:
stat64("/usr/local/bin/houdini_setup", 0xbf989e60) = -1 ENOENT (No such file or directory)stat64("/usr/bin/houdini_setup", 0xbf989e60) = -1 ENOENT (No such file or directory)stat64("/bin/houdini_setup", 0xbf989e60) = -1 ENOENT (No such file or directory)
That could have led you to check the documentation for the source
builtin.