diff options
author | Kang Kai <kai.kang@windriver.com> | 2012-06-06 17:52:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-08 12:13:16 +0100 |
commit | ac7b96420aeaa3534d51e2d61b2d8ecca008bd11 (patch) | |
tree | 4ac14d94df9fce232224440c2befd051affd84e5 | |
parent | 574b5ecfa58a5f585be6efa7c77ef9574dbc5a27 (diff) | |
download | poky-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>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/utils.py | 1 |
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 | ||
24 | import os | 24 | import os |
25 | import bb | ||
25 | 26 | ||
26 | def which_terminal(): | 27 | def which_terminal(): |
27 | term = bb.utils.which(os.environ["PATH"], "xterm") | 28 | term = bb.utils.which(os.environ["PATH"], "xterm") |