diff --git a/lib/bb/utils.py b/lib/bb/utils.py index f62709bed52..bc579d0990c 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -806,7 +806,7 @@ def which(path, item, direction = 0, history = False): for p in paths: next = os.path.join(p, item) hist.append(next) - if os.path.exists(next): + if os.path.isfile(next): if not os.path.isabs(next): next = os.path.abspath(next) if history: