diff options
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 4b957884cc..fc06841d3f 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -81,9 +81,11 @@ def init(fn, data): | |||
81 | 81 | ||
82 | def resolve_file(fn, d): | 82 | def resolve_file(fn, d): |
83 | if not os.path.isabs(fn): | 83 | if not os.path.isabs(fn): |
84 | fn = bb.utils.which(bb.data.getVar("BBPATH", d, 1), fn) | 84 | bbpath = bb.data.getVar("BBPATH", d, True) |
85 | if not fn: | 85 | newfn = bb.which(bbpath, fn) |
86 | raise IOError("file %s not found" % fn) | 86 | if not newfn: |
87 | raise IOError("file %s not found in %s" % (fn, bbpath)) | ||
88 | fn = newfn | ||
87 | 89 | ||
88 | bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn) | 90 | bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn) |
89 | return fn | 91 | return fn |