diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-04 13:10:00 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-06-04 13:10:00 -0700 |
commit | d6951f72ace6be1d89803793d8882107f977f557 (patch) | |
tree | f9f9d4673cb89dc81438cddbd6c8f6ec50b68c65 | |
parent | bef07c6dc7e3b7b8c995d70ea429d141278b6eb6 (diff) | |
download | bitbake-d6951f72ace6be1d89803793d8882107f977f557.tar.gz |
Make the file not found error actually useable.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/parse/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py index 2a7897cdf..1bd4aa150 100644 --- a/lib/bb/parse/__init__.py +++ b/lib/bb/parse/__init__.py @@ -82,9 +82,11 @@ def init(fn, data): def resolve_file(fn, d): if not os.path.isabs(fn): - fn = bb.which(bb.data.getVar("BBPATH", d, 1), fn) - if not fn: - raise IOError("file %s not found" % fn) + bbpath = bb.data.getVar("BBPATH", d, True) + newfn = bb.which(bbpath, fn) + if not newfn: + raise IOError("file %s not found in %s" % (fn, bbpath)) + fn = newfn bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn) return fn |