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>
This commit is contained in:
parent
574b5ecfa5
commit
ac7b96420a
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue