summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2015-12-06 08:53:22 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-08 10:20:47 +0000
commit80e39195c79dd2940b2c23b370405a857b42b533 (patch)
tree56b52dfa84588c8c2c2e3f809739588f5ed304dd /scripts/wic
parent9d788d73307d3bb1733dca3f399bf3dabedd3d2b (diff)
downloadpoky-80e39195c79dd2940b2c23b370405a857b42b533.tar.gz
wic: insert local Python paths at front
This follows how bitbake performs path insertion, and fixes a failure to start wic on Ubuntu 15.10 with the distribution's version of python-ply installed. (From OE-Core rev: 59b1eefb801dfb1d4afe9640e3c8a070d4e1867f) Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/wic b/scripts/wic
index 7ad2b191c6..2286f20a96 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -41,12 +41,12 @@ from distutils import spawn
41# External modules 41# External modules
42scripts_path = os.path.abspath(os.path.dirname(__file__)) 42scripts_path = os.path.abspath(os.path.dirname(__file__))
43lib_path = scripts_path + '/lib' 43lib_path = scripts_path + '/lib'
44sys.path.append(lib_path) 44sys.path.insert(0, lib_path)
45 45
46bitbake_exe = spawn.find_executable('bitbake') 46bitbake_exe = spawn.find_executable('bitbake')
47if bitbake_exe: 47if bitbake_exe:
48 bitbake_path = os.path.join(os.path.dirname(bitbake_exe), '../lib') 48 bitbake_path = os.path.join(os.path.dirname(bitbake_exe), '../lib')
49 sys.path.append(bitbake_path) 49 sys.path.insert(0, bitbake_path)
50 from bb import cookerdata 50 from bb import cookerdata
51 from bb.main import bitbake_main, BitBakeConfigParameters 51 from bb.main import bitbake_main, BitBakeConfigParameters
52else: 52else: