Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] wic: insert local Python paths at front
@ 2015-12-06 16:53 Matt Madison
  2015-12-07 10:04 ` Ed Bartosh
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Madison @ 2015-12-06 16:53 UTC (permalink / raw)
  To: openembedded-core

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@madison.systems>
---
 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:
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wic: insert local Python paths at front
  2015-12-06 16:53 [PATCH] wic: insert local Python paths at front Matt Madison
@ 2015-12-07 10:04 ` Ed Bartosh
  0 siblings, 0 replies; 2+ messages in thread
From: Ed Bartosh @ 2015-12-07 10:04 UTC (permalink / raw)
  To: Matt Madison; +Cc: openembedded-core

Hi Matt,

Thank you for the patch!

Acked-by: Ed Bartosh <ed.bartosh@linux.intel.com>

On Sun, Dec 06, 2015 at 08:53:22AM -0800, Matt Madison wrote:
> 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@madison.systems>
> ---
>  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:
> -- 
> 2.5.0
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Regards,
Ed


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-07 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-06 16:53 [PATCH] wic: insert local Python paths at front Matt Madison
2015-12-07 10:04 ` Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox