[oe-commits] Christopher Larson : buildhistory-diff: prepend to sys.path

git at git.openembedded.org git at git.openembedded.org
Wed Jan 9 15:17:28 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 246990e8a3da01020f65d151971883740eacb378
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=246990e8a3da01020f65d151971883740eacb378

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Tue Jan  8 13:31:07 2013 -0700

buildhistory-diff: prepend to sys.path

This ensures that regardless of what else is in our search path, we always use
the bitbake corresponding to the running buildhistory-diff command.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/buildhistory-diff |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff
index 3f27eab..8493da4 100755
--- a/scripts/buildhistory-diff
+++ b/scripts/buildhistory-diff
@@ -44,7 +44,7 @@ def main():
             print("Unable to find bitbake by searching parent directory of this script or PATH")
             sys.exit(1)
 
-    sys.path.extend([newpath, bitbakepath + '/lib'])
+    sys.path[0:0] = [newpath, bitbakepath + '/lib']
     import oe.buildhistory_analysis
 
     if len(sys.argv) > 3:





More information about the Openembedded-commits mailing list