[oe-commits] Holger Hans Peter Freyther : oeaudit: Print a friendly message when the bitbake module can not be found
git version control
git at git.openembedded.org
Mon Mar 22 16:06:48 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: d0263eb39f48ad368601adffd8edde954af6aedf
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d0263eb39f48ad368601adffd8edde954af6aedf
Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date: Mon Mar 22 04:34:52 2010 +0100
oeaudit: Print a friendly message when the bitbake module can not be found
---
contrib/oeaudit/oe_audit.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/contrib/oeaudit/oe_audit.py b/contrib/oeaudit/oe_audit.py
index 6729edf..b15a32f 100755
--- a/contrib/oeaudit/oe_audit.py
+++ b/contrib/oeaudit/oe_audit.py
@@ -1,6 +1,15 @@
#!/usr/bin/env python
-import freebsd, oe, bb
+import freebsd, oe
+
+try:
+ import bb
+except Exception, e:
+ import sys
+ sys.stderr.write("Set PYTHONPATH to bitbake/lib and restart.\n")
+ sys.stderr.write("The backtrace can be seen below.\n")
+ raise e
+
def strip_oe_version(oe_version):
"""
More information about the Openembedded-commits
mailing list