aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-22 04:34:52 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-22 04:34:52 +0100
commitd0263eb39f48ad368601adffd8edde954af6aedf (patch)
tree40f60d9ef400f7464a6ed087c99be3a98046173f /contrib
parent654f95c32918456f928f117871b15f09c0b6ae25 (diff)
downloadopenembedded-d0263eb39f48ad368601adffd8edde954af6aedf.tar.gz
oeaudit: Print a friendly message when the bitbake module can not be found
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/oeaudit/oe_audit.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/oeaudit/oe_audit.py b/contrib/oeaudit/oe_audit.py
index 6729edfa73..b15a32fdea 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):
"""