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>
This commit is contained in:
Ross Burton
2021-10-20 13:48:31 +01:00
committed by Naveen Saini
parent 8178bc751e
commit 9944d69567

View File

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