qemu-e2k/python/qemu
John Snow 062fd1dad2 python/utils: add VerboseProcessError
This adds an Exception that extends the Python stdlib
subprocess.CalledProcessError.

The difference is that the str() method of this exception also adds the
stdout/stderr logs. In effect, if this exception goes unhandled, Python
will print the output in a visually distinct wrapper to the terminal so
that it's easy to spot in a sea of traceback information.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220321201618.903471-3-jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
2022-03-22 10:14:23 +01:00
..
aqmp python/aqmp: drop _bind_hack() 2022-03-07 14:36:41 -05:00
machine python/machine: raise VMLaunchFailure exception from launch() 2022-02-02 14:12:22 -05:00
qmp python: move qmp-shell under the AQMP package 2022-01-21 16:01:31 -05:00
utils python/utils: add VerboseProcessError 2022-03-22 10:14:23 +01:00
README.rst python: add directory structure README.rst files 2021-06-01 16:21:21 -04:00

README.rst

QEMU Python Namespace
=====================

This directory serves as the root of a `Python PEP 420 implicit
namespace package <https://www.python.org/dev/peps/pep-0420/>`_.

Each directory below is assumed to be an installable Python package that
is available under the ``qemu.<package>`` namespace.