diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 5e74afd9a..2a7897cdf 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py @@ -82,13 +82,9 @@ def init(fn, data): def resolve_file(fn, d): if not os.path.isabs(fn): - bbpath = (bb.data.getVar('BBPATH', d, 1) or '').split(':') - for p in bbpath: - j = os.path.join(p, fn) - if os.access(j, os.R_OK): - bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % j) - return j - raise IOError("file %s not found" % fn) + fn = bb.which(bb.data.getVar("BBPATH", d, 1), fn) + if not fn: + raise IOError("file %s not found" % fn) bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn) return fn |