summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
index deafd6479..a1eaf317a 100644
--- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
@@ -39,11 +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 must be set")
def supports(fn, d):