popen_wrapper
Friendly wrapper around Popen.
Return stdout output, stderr output, and OS status code.
def popen_wrapper(
args: list,
stdout_encoding: string = utf-8
) - > tuple
Friendly wrapper around Popen. Return stdout output, stderr output, and OS status code.
Parameters
| Name | Type | Description |
|---|---|---|
| args | list | A list of program arguments to execute, where the first item is the executable path or command |
| stdout_encoding | string = utf-8 | The character encoding used to decode the standard output stream |
Returns
| Type | Description |
|---|---|
tuple | A tuple containing the decoded stdout string, the decoded stderr string (using locale encoding), and the integer process return code |