[oe-commits] [openembedded-core] branch jethro updated: wic: insert local Python paths at front

git at git.openembedded.org git at git.openembedded.org
Tue May 24 12:22:12 UTC 2016


rpurdie pushed a commit to branch jethro
in repository openembedded-core.

The following commit(s) were added to refs/heads/jethro by this push:
       new  b3a3935   wic: insert local Python paths at front
b3a3935 is described below

commit b3a3935c69b6e74e19cd0cb69d47350b9ea9c58e
Author: Matt Madison <matt at madison.systems>
AuthorDate: Sun Dec 6 08:53:22 2015 -0800

    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.
    
    Signed-off-by: Matt Madison <matt at madison.systems>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/wic | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/wic b/scripts/wic
index 7ad2b19..2286f20 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -41,12 +41,12 @@ from distutils import spawn
 # External modules
 scripts_path = os.path.abspath(os.path.dirname(__file__))
 lib_path = scripts_path + '/lib'
-sys.path.append(lib_path)
+sys.path.insert(0, lib_path)
 
 bitbake_exe = spawn.find_executable('bitbake')
 if bitbake_exe:
     bitbake_path = os.path.join(os.path.dirname(bitbake_exe), '../lib')
-    sys.path.append(bitbake_path)
+    sys.path.insert(0, bitbake_path)
     from bb import cookerdata
     from bb.main import bitbake_main, BitBakeConfigParameters
 else:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list