diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
commit | 627d9b1bde25422ccde4e313ee3c954b5c9b2932 (patch) | |
tree | 3bdf252f71ed0a1155bef212fbf8c7415bdc2788 /bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py | |
parent | f1216d2adbb0371deedec3a5060f377e8eb65d64 (diff) | |
download | poky-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.gz |
bitbake-dev: Sync with changes upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py')
-rw-r--r-- | bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py b/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py index f8a49689e2..c9f1ea13fb 100644 --- a/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake-dev/lib/bb/parse/parse_py/ConfHandler.py | |||
@@ -102,6 +102,13 @@ def include(oldfn, fn, data, error_out): | |||
102 | fn = bb.data.expand(fn, data) | 102 | fn = bb.data.expand(fn, data) |
103 | oldfn = bb.data.expand(oldfn, data) | 103 | oldfn = bb.data.expand(oldfn, data) |
104 | 104 | ||
105 | if not os.path.isabs(fn): | ||
106 | dname = os.path.dirname(oldfn) | ||
107 | bbpath = "%s:%s" % (dname, bb.data.getVar("BBPATH", data, 1)) | ||
108 | abs_fn = bb.which(bbpath, fn) | ||
109 | if abs_fn: | ||
110 | fn = abs_fn | ||
111 | |||
105 | from bb.parse import handle | 112 | from bb.parse import handle |
106 | try: | 113 | try: |
107 | ret = handle(fn, data, True) | 114 | ret = handle(fn, data, True) |