Previously, it was difficult to get access to bart's error codes and messages from python, which is especially relevant for interactive sessions. This patch addresses this issue.
Stdout, stderr, and the error code are stored as function attributes, so that they can be accessed from outside of bart.py.
Example:
from bart import bart
bart(0, "pics -h")
print("Here's the command output again:")
print(bart.stdout)
Previously, it was difficult to get access to bart's error codes and messages from python, which is especially relevant for interactive sessions. This patch addresses this issue.
Stdout, stderr, and the error code are stored as function attributes, so that they can be accessed from outside of bart.py.
Example:
from bart import bart bart(0, "pics -h") print("Here's the command output again:") print(bart.stdout)