summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2012-06-06 17:52:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-08 12:13:16 +0100
commitac7b96420aeaa3534d51e2d61b2d8ecca008bd11 (patch)
tree4ac14d94df9fce232224440c2befd051affd84e5 /bitbake
parent574b5ecfa58a5f585be6efa7c77ef9574dbc5a27 (diff)
downloadpoky-ac7b96420aeaa3534d51e2d61b2d8ecca008bd11.tar.gz
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 <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/utils.py b/bitbake/lib/bb/ui/crumbs/utils.py
index cd01a04fa9..939864fa6f 100644
--- a/bitbake/lib/bb/ui/crumbs/utils.py
+++ b/bitbake/lib/bb/ui/crumbs/utils.py
@@ -22,6 +22,7 @@
22# bitbake which will allow more flexibility. 22# bitbake which will allow more flexibility.
23 23
24import os 24import os
25import bb
25 26
26def which_terminal(): 27def which_terminal():
27 term = bb.utils.which(os.environ["PATH"], "xterm") 28 term = bb.utils.which(os.environ["PATH"], "xterm")