summary refs log tree commit diff stats
path: root/scripts/qmp/qmp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qmp/qmp')
-rwxr-xr-xscripts/qmp/qmp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/qmp/qmp b/scripts/qmp/qmp
index 0625fc2aba..8e52e4a54d 100755
--- a/scripts/qmp/qmp
+++ b/scripts/qmp/qmp
@@ -11,7 +11,9 @@
 # See the COPYING file in the top-level directory.
 
 import sys, os
-from qmp import QEMUMonitorProtocol
+
+sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
+from qemu.qmp import QEMUMonitorProtocol
 
 def print_response(rsp, prefix=[]):
     if type(rsp) == list: