bitbake/utils.py: Ensure utils.which() returns full paths
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 May 2012 12:57:16 +0000 (13:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 May 2012 10:15:12 +0000 (11:15 +0100)
commit86c7f20f0c59229da1097260209aa9fb8053735d
tree8f47699d49520a79a9601b034b0c00221e5b6fbd
parentb9fb586cb52e4e677671427f3110e6e9df236746
bitbake/utils.py: Ensure utils.which() returns full paths

If the path passed to which contains empty elements, it will search
the current working directory for the file which is correct baheviour.

Various pieces of code assume the path returned is a full path though.
This commit ensures we don't return relative paths.

(Bitbake rev: 4de24ccc10e40cc088b8515095df59f69b12715d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py