diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 04:34:52 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-22 04:34:52 +0100 |
commit | d0263eb39f48ad368601adffd8edde954af6aedf (patch) | |
tree | 40f60d9ef400f7464a6ed087c99be3a98046173f /contrib | |
parent | 654f95c32918456f928f117871b15f09c0b6ae25 (diff) |
oeaudit: Print a friendly message when the bitbake module can not be found
Diffstat (limited to 'contrib')
-rwxr-xr-x | 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 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): """ |