From: Kang Kai Date: Wed, 6 Jun 2012 09:52:23 +0000 (+0800) Subject: ui/crumbs/utils.py: import module bb X-Git-Tag: rev_ivi_2015_02_04~16970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f993dc757cf2c358d1c3bd266d552004bc65bef;p=scm%2Fbb%2Ftizen-distro.git ui/crumbs/utils.py: import module bb 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 (Bitbake rev: 9e370d9b1022112be2ac8f73feb182b1bba179b0) Signed-off-by: Kang Kai Signed-off-by: Richard Purdie --- 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")