Better to error immediately than behave differently than the user expects, and
given the bitbake default base.bbclass and bitbake.conf, it won't be what they
expect.

Signed-off-by: Chris Larson <[email protected]>
---
 lib/bb/parse/parse_py/ConfHandler.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/lib/bb/parse/parse_py/ConfHandler.py
b/lib/bb/parse/parse_py/ConfHandler.py
index 23316ad..9414375 100644
--- a/lib/bb/parse/parse_py/ConfHandler.py
+++ b/lib/bb/parse/parse_py/ConfHandler.py
@@ -39,12 +39,7 @@ def init(data):
         topdir = os.getcwd()
         bb.data.setVar('TOPDIR', topdir, data)
     if not bb.data.getVar('BBPATH', data):
-        from pkg_resources import Requirement, resource_filename
-        bitbake = Requirement.parse("bitbake")
-        datadir = resource_filename(bitbake, "../share/bitbake")
-        basedir = resource_filename(bitbake, "..")
-        bb.data.setVar('BBPATH', '%s:%s:%s' % (topdir, datadir, basedir), data)
-
+        bb.fatal("The BBPATH environment variable is unset, unable to
proceed.")

 def supports(fn, d):
     return localpath(fn, d)[-5:] == ".conf"
-- 
1.6.4.339.g527d
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to