diff options
author | Cleber Rosa <crosa@redhat.com> | 2019-02-06 11:29:01 -0500 |
---|---|---|
committer | Cleber Rosa <crosa@redhat.com> | 2019-02-22 14:07:01 -0500 |
commit | 8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a (patch) | |
tree | ce9b96833ac68e67cd391393e34f0fcae530f8b1 /scripts/qmp/qemu-ga-client | |
parent | 9531d26c10613348b53e1846566380be4f15b23c (diff) | |
download | qemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.zip qemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.tar.gz qemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.tar.bz2 |
Introduce a Python module structure
This is a simple move of Python code that wraps common QEMU
functionality, and are used by a number of different tests
and scripts.
By treating that code as a real Python module, we can more easily:
* reuse code
* have a proper place for the module's own unittests
* apply a more consistent style
* generate documentation
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Caio Carrara <ccarrara@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20190206162901.19082-2-crosa@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'scripts/qmp/qemu-ga-client')
-rwxr-xr-x | scripts/qmp/qemu-ga-client | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/qmp/qemu-ga-client b/scripts/qmp/qemu-ga-client index e8cb764..30cf8a9 100755 --- a/scripts/qmp/qemu-ga-client +++ b/scripts/qmp/qemu-ga-client @@ -37,10 +37,13 @@ # from __future__ import print_function +import os +import sys import base64 import random -import qmp +sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) +from qemu import qmp class QemuGuestAgent(qmp.QEMUMonitorProtocol): |