subprocess problem
Cameron Simpson
cs at zip.com.au
Thu Feb 9 17:50:32 EST 2017
On 09Feb2017 11:16, Andreas Paeffgen <oegeeks at 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 <cs at zip.com.au>
More information about the Python-list
mailing list