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 <[email protected]>
---
 lib/oeqa/controllers/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

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__)
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55106): https://lists.yoctoproject.org/g/yocto/message/55106
Mute This Topic: https://lists.yoctoproject.org/mt/86463733/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to