All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-zephyr][PATCH] lib/oeqa/controllers: extend search path
@ 2021-10-20 12:48 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2021-10-20 12:48 UTC (permalink / raw)
  To: yocto; +Cc: naveen.kumar.saini

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>
---
 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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-20 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 12:48 [meta-zephyr][PATCH] lib/oeqa/controllers: extend search path Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.