diff options
author | John Snow <jsnow@redhat.com> | 2019-06-27 17:28:14 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-07-01 19:02:10 -0300 |
commit | abf0bf998dcb20807195018bfdd7abca2930dbbd (patch) | |
tree | 1e8edb1d32d794a2ca1ac2e43bdffa7777155c36 /scripts | |
parent | 08aa87f5e78270c3b225eb5c89c069aa9f49f5c1 (diff) |
python/qemu: split QEMUMachine out from underneath __init__.py
It's not obvious that something named __init__.py actually houses
important code that isn't relevant to python packaging glue. Move the
QEMUMachine and related error classes out into their own module.
Adjust users to the new import location.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20190627212816.27298-2-jsnow@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/device-crash-test | 2 | ||||
-rwxr-xr-x | scripts/render_block_graph.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/device-crash-test b/scripts/device-crash-test index a6748910ad..15f213a6cd 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -36,7 +36,7 @@ import argparse from itertools import chain sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'python')) -from qemu import QEMUMachine +from qemu.machine import QEMUMachine logger = logging.getLogger('device-crash-test') dbg = logger.debug diff --git a/scripts/render_block_graph.py b/scripts/render_block_graph.py index 3e9d282a49..656f0388ad 100755 --- a/scripts/render_block_graph.py +++ b/scripts/render_block_graph.py @@ -25,7 +25,7 @@ import json from graphviz import Digraph sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'python')) -from qemu import MonitorResponseError +from qemu.machine import MonitorResponseError def perm(arr): |