summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-11 09:40:35 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-13 08:42:01 (GMT)
commitd97caeb6bb53a2c34865293d40698e345886197a (patch)
tree6b276e3862336059a2176e395ecb8d70475efd9b /meta/lib
parent1670d22835d612344862ae9d5cb1f8dd58e9bb02 (diff)
downloadpoky-d97caeb6bb53a2c34865293d40698e345886197a.tar.gz
qemu: install qmp module without hardcoding the python version in oeqa scripts
(From OE-Core rev: 6d3f55ea8f7190e6825dc72424088658cbc0a13c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index d961a9a..0397148 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -183,7 +183,7 @@ class QemuRunner:
183 # then add in the site-packages path components and add that 183 # then add in the site-packages path components and add that
184 # to the python sys.path so qmp.py can be found. 184 # to the python sys.path so qmp.py can be found.
185 python_path = os.path.dirname(os.path.dirname(self.logfile)) 185 python_path = os.path.dirname(os.path.dirname(self.logfile))
186 python_path += "/recipe-sysroot-native/usr/lib/python3.9/site-packages" 186 python_path += "/recipe-sysroot-native/usr/lib/qemu-python"
187 sys.path.append(python_path) 187 sys.path.append(python_path)
188 importlib.invalidate_caches() 188 importlib.invalidate_caches()
189 try: 189 try: