Oh, this might explain some weird errors I was having. See the de-duplication patch last week or so for oeqa.
Ross
On Thu, 31 Mar 2022 at 12:01, Richard Purdie <richard.purdie@...> wrote:
We can re-trigger this code and there is little point in stacking a ton of duplicate paths which just waste time during searches for modules. This could in theory alter layer module search order but that seems unlikely in common use.
- bbpath = d.getVar("BBPATH").split(":") - sys.path[0:0] = [os.path.join(dir, "lib") for dir in bbpath] + bbpath = [os.path.join(dir, "lib") for dir in d.getVar("BBPATH").split(":")] + sys.path[0:0] = [dir for dir in bbpath if dir not in sys.path]
def inject(name, value): """Make a python object accessible from the metadata""" -- 2.32.0