diff options
| -rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 6 |
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 deafd6479f..a1eaf317ac 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): | |||
| 39 | topdir = os.getcwd() | 39 | topdir = os.getcwd() |
| 40 | bb.data.setVar('TOPDIR', topdir, data) | 40 | bb.data.setVar('TOPDIR', topdir, data) |
| 41 | if not bb.data.getVar('BBPATH', data): | 41 | if not bb.data.getVar('BBPATH', data): |
| 42 | from pkg_resources import Requirement, resource_filename | 42 | bb.fatal("The BBPATH environment variable must be set") |
| 43 | bitbake = Requirement.parse("bitbake") | ||
| 44 | datadir = resource_filename(bitbake, "../share/bitbake") | ||
| 45 | basedir = resource_filename(bitbake, "..") | ||
| 46 | bb.data.setVar('BBPATH', '%s:%s:%s' % (topdir, datadir, basedir), data) | ||
| 47 | 43 | ||
| 48 | 44 | ||
| 49 | def supports(fn, d): | 45 | def supports(fn, d): |
