diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-03 12:15:04 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:46 +0000 |
commit | 1e3b83f96bda9f48a105100a6639e91d086ba14d (patch) | |
tree | d29ce4645ff2448106068de1f0bc2397f54776b9 /bitbake | |
parent | 7481c11e34d177ef54b537ca477df88ee40e5602 (diff) | |
download | openembedded-core-1e3b83f96bda9f48a105100a6639e91d086ba14d.tar.gz openembedded-core-1e3b83f96bda9f48a105100a6639e91d086ba14d.tar.bz2 openembedded-core-1e3b83f96bda9f48a105100a6639e91d086ba14d.tar.xz openembedded-core-1e3b83f96bda9f48a105100a6639e91d086ba14d.zip |
Error more pleasantly when trying to use python2.4
(Bitbake rev: 57402ee727c8c1d8f5017534fb0f5e0b20aaaa5b)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 821213068..1dbaf96b4 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -210,16 +210,17 @@ Default BBFILES are the .bb files in the current directory.""") ui = "knotty" try: - # Dynamically load the UI based on the ui name. Although we - # suggest a fixed set this allows you to have flexibility in which - # ones are available. - uimodule = __import__("bb.ui", fromlist = [ui]) - ui_init = getattr(uimodule, ui).init - except AttributeError: - print("FATAL: Invalid user interface '%s' specified. " % ui) - print("Valid interfaces are 'ncurses', 'depexp' or the default, 'knotty'.") - else: - return_value = server.BitbakeUILauch().launch(serverinfo, ui_init, serverConnection.connection, serverConnection.events) + try: + # Dynamically load the UI based on the ui name. Although we + # suggest a fixed set this allows you to have flexibility in which + # ones are available. + uimodule = __import__("bb.ui", fromlist = [ui]) + ui_init = getattr(uimodule, ui).init + except AttributeError: + print("FATAL: Invalid user interface '%s' specified. " % ui) + print("Valid interfaces are 'ncurses', 'depexp' or the default, 'knotty'.") + else: + return_value = server.BitbakeUILauch().launch(serverinfo, ui_init, serverConnection.connection, serverConnection.events) finally: serverConnection.terminate() |