diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c564d34c7a..1bb9e9472d 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -611,7 +611,7 @@ def which(path, item, direction = 0): | |||
611 | if direction != 0: | 611 | if direction != 0: |
612 | paths.reverse() | 612 | paths.reverse() |
613 | 613 | ||
614 | for p in (path or "").split(':'): | 614 | for p in paths: |
615 | next = os.path.join(p, item) | 615 | next = os.path.join(p, item) |
616 | if os.path.exists(next): | 616 | if os.path.exists(next): |
617 | return next | 617 | return next |