diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
| -rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index 9188119e4d..9128a2ef8f 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py | |||
| @@ -37,10 +37,7 @@ __export_regexp__ = re.compile( r"export\s+(.+)" ) | |||
| 37 | def init(data): | 37 | def init(data): |
| 38 | topdir = bb.data.getVar('TOPDIR', data) | 38 | topdir = bb.data.getVar('TOPDIR', data) |
| 39 | if not topdir: | 39 | if not topdir: |
| 40 | topdir = os.getcwd() | 40 | bb.data.setVar('TOPDIR', os.getcwd(), data) |
| 41 | bb.data.setVar('TOPDIR', topdir, data) | ||
| 42 | if not bb.data.getVar('BBPATH', data): | ||
| 43 | bb.msg.fatal(bb.msg.domain.Parsing, "The BBPATH environment variable must be set") | ||
| 44 | 41 | ||
| 45 | 42 | ||
| 46 | def supports(fn, d): | 43 | def supports(fn, d): |
