oe.utils: add bb, bb.data imports

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

(From OE-Core rev: a521835701c07f5786acd663fb4fb394e93eba91)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chris Larson 2010-12-29 17:13:29 -07:00 committed by Richard Purdie
parent dd3a1d3b41
commit fb02ca3a16
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import bb, bb.data
def read_file(filename):
try:
f = file( filename, "r" )