On 09Feb2017 11:16, Andreas Paeffgen <oege...@gmail.com> wrote:
I guess which does not return an error code. If it does not find anything, the return is just blank. If it finds something, the path is returned.

So the change of code did not help, because there is just no error message.
Could there be a $path problem in the subprocess started inside the binary?

You're confusing the error code (an integer returned from _every_ exiting process) and the process' stdout and stderr, which are data streams.

This is why I suggested the check_returncode() method, which examines the error code.

Cheers,
Cameron Simpson <c...@zip.com.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to