diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index d7bf6d4f37..cc8bc92e1d 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -122,8 +122,10 @@ def handle(fn, d, include = 0): | |||
122 | abs_fn = fn | 122 | abs_fn = fn |
123 | 123 | ||
124 | if ext != ".bbclass": | 124 | if ext != ".bbclass": |
125 | bbpath.insert(0, os.path.dirname(abs_fn)) | 125 | dname = os.path.dirname(abs_fn) |
126 | data.setVar('BBPATH', ":".join(bbpath), d) | 126 | if bbpath[0] != dname: |
127 | bbpath.insert(0, dname) | ||
128 | data.setVar('BBPATH', ":".join(bbpath), d) | ||
127 | 129 | ||
128 | if include: | 130 | if include: |
129 | bb.parse.mark_dependency(d, abs_fn) | 131 | bb.parse.mark_dependency(d, abs_fn) |