]> code.ossystems Code Review - openembedded-core.git/commit
wic: use find_executable in favor of bb.utils.which
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:23 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
commit9658956bf8a5da779e06f71941de9b3e89415cdc
tree45bc241682ca38d5241265cf6fd615c11cf89f38
parent296db7e33bd71585cac63dc78c2c95bc619b4a86
wic: use find_executable in favor of bb.utils.which

As bitbake is not ported to Python 3 yet it's better to
avoid using its APIs as much as possible to be able to
test wic under Python 3 at least partially.

Used distutils.spawn.find_executable API in favor of
bb.utils.which to get path of the command to run.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/utils/oe/misc.py