diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index cc81461473..e51722d945 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -20,8 +20,8 @@ PACKAGECONFIG_CONFARGS ??= "" | |||
20 | def oe_import(d): | 20 | def oe_import(d): |
21 | import sys | 21 | import sys |
22 | 22 | ||
23 | bbpath = d.getVar("BBPATH").split(":") | 23 | bbpath = [os.path.join(dir, "lib") for dir in d.getVar("BBPATH").split(":")] |
24 | sys.path[0:0] = [os.path.join(dir, "lib") for dir in bbpath] | 24 | sys.path[0:0] = [dir for dir in bbpath if dir not in sys.path] |
25 | 25 | ||
26 | def inject(name, value): | 26 | def inject(name, value): |
27 | """Make a python object accessible from the metadata""" | 27 | """Make a python object accessible from the metadata""" |