[bitbake-devel,1/6] ui/crumbs/utils.py: import module bb

Submitted by Kang Kai on June 6, 2012, 9:52 a.m.

Details

Message ID a8eff2ed11a96051a8e72e30227dac80d7a69836.1338976258.git.kai.kang@windriver.com
State New
Headers show

Commit Message

Kang Kai June 6, 2012, 9:52 a.m.
When I try to call function which_terminal() of utils.py directly,
it complains NameError: global name 'bb' is not defined

So import module bb

Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
 bitbake/lib/bb/ui/crumbs/utils.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/ui/crumbs/utils.py b/bitbake/lib/bb/ui/crumbs/utils.py
index cd01a04..939864f 100644
--- a/bitbake/lib/bb/ui/crumbs/utils.py
+++ b/bitbake/lib/bb/ui/crumbs/utils.py
@@ -22,6 +22,7 @@ 
 # bitbake which will allow more flexibility.
 
 import os
+import bb
 
 def which_terminal():
     term = bb.utils.which(os.environ["PATH"], "xterm")