summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 5363a1b..f357dce 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -11,6 +11,7 @@ inherit buildstats
11inherit logging 11inherit logging
12 12
13OE_IMPORTS += "os sys time oe.path oe.utils oe.data" 13OE_IMPORTS += "os sys time oe.path oe.utils oe.data"
14OE_IMPORTS[type] = "list"
14 15
15def oe_import(d): 16def oe_import(d):
16 import os, sys 17 import os, sys
@@ -25,7 +26,8 @@ def oe_import(d):
25 else: 26 else:
26 __builtins__[name] = value 27 __builtins__[name] = value
27 28
28 for toimport in d.getVar("OE_IMPORTS", True).split(): 29 import oe.data
30 for toimport in oe.data.typed_value("OE_IMPORTS", d):
29 imported = __import__(toimport) 31 imported = __import__(toimport)
30 inject(toimport.split(".", 1)[0], imported) 32 inject(toimport.split(".", 1)[0], imported)
31 33