]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/runtime: search sys.path explicitly for modules
authorRoss Burton <ross@burtonini.com>
Wed, 20 Oct 2021 17:30:07 +0000 (18:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Oct 2021 16:41:46 +0000 (17:41 +0100)
commit570a19581f582f77e04d6892adb647cd649a6943
treee389e5dcfbc1ef1431340f12aca35f1bf126e53b
parent9f501d22eab5dbd565f3f5783f4f484a6d1f70a2
oeqa/runtime: search sys.path explicitly for modules

The controller module loading code needs to be told what directories
to search for modules via the target_modules_path keyword argument, which
is set to BBPATH.

However, as the actual module loading is done via importlib this relies
on the paths being on sys.path, which it is as base.bbclass puts each
layer's lib/ in sys.path.

Simplify the code by removing this indirection, and simply search
sys.path directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/context.py