summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/wic b/scripts/wic
index 097084a603..0d98875715 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -43,13 +43,12 @@ from distutils import spawn
43scripts_path = os.path.abspath(os.path.dirname(__file__)) 43scripts_path = os.path.abspath(os.path.dirname(__file__))
44lib_path = scripts_path + '/lib' 44lib_path = scripts_path + '/lib'
45sys.path.insert(0, lib_path) 45sys.path.insert(0, lib_path)
46oe_lib_path = os.path.join(os.path.dirname(scripts_path), 'meta', 'lib') 46import scriptpath
47sys.path.insert(0, oe_lib_path) 47scriptpath.add_oe_lib_path()
48 48
49bitbake_exe = spawn.find_executable('bitbake') 49bitbake_exe = spawn.find_executable('bitbake')
50if bitbake_exe: 50if bitbake_exe:
51 bitbake_path = os.path.join(os.path.dirname(bitbake_exe), '../lib') 51 bitbake_path = scriptpath.add_bitbake_lib_path()
52 sys.path.insert(0, bitbake_path)
53 from bb import cookerdata 52 from bb import cookerdata
54 from bb.main import bitbake_main, BitBakeConfigParameters 53 from bb.main import bitbake_main, BitBakeConfigParameters
55else: 54else: