From d0263eb39f48ad368601adffd8edde954af6aedf Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 22 Mar 2010 04:34:52 +0100 Subject: [PATCH] oeaudit: Print a friendly message when the bitbake module can not be found --- contrib/oeaudit/oe_audit.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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): """ -- 2.39.5