aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2021-10-20 13:48:31 +0100
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-10-21 13:44:02 +0800
commit9944d6956722e69124586f17c38fbb8b5fcc0ba1 (patch)
tree6262184dc2cc02d09ec0cac8d5b6ae585be28f20
parent8178bc751eeda18af3add276b1f68bebac6d5c7b (diff)
downloadmeta-zephyr-9944d6956722e69124586f17c38fbb8b5fcc0ba1.zip
meta-zephyr-9944d6956722e69124586f17c38fbb8b5fcc0ba1.tar.gz
meta-zephyr-9944d6956722e69124586f17c38fbb8b5fcc0ba1.tar.bz2
lib/oeqa/controllers: extend search path
When multiple locations can provide modules in the same package, the search path needs to be extended with pkgutil.extend_path. Otherwise the search will end early and not iterate through each of the providers. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--lib/oeqa/controllers/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oeqa/controllers/__init__.py b/lib/oeqa/controllers/__init__.py
index e69de29..df3c142 100644
--- a/lib/oeqa/controllers/__init__.py
+++ b/lib/oeqa/controllers/__init__.py
@@ -0,0 +1,3 @@
+# This is needed so that multiple locations can provide the same package
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)