Patchwork [01/12] oe.utils: add bb, bb.data imports

login
register
mail settings
Submitter Christopher Larson
Date March 17, 2011, 4:18 p.m.
Message ID <14c0b5c9cbb73b48580de9b033b1ff942226f083.1300378596.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/1533/
State New, archived
Headers show

Comments

Christopher Larson - March 17, 2011, 4:18 p.m.
From: Chris Larson <chris_larson@mentor.com>

While the metadata can and should rely on bb always being available, this
needn't necessarily be the case for imported python modules.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 meta/lib/oe/utils.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 3469700..69f9384 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -1,3 +1,5 @@ 
+import bb, bb.data
+
 def read_file(filename):
     try:
         f = file( filename, "r" )