summaryrefslogtreecommitdiff
path: root/contrib/oeaudit/oe_audit.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/oeaudit/oe_audit.py')
-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):
"""