]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory-diff: prepend to sys.path
authorChristopher Larson <chris_larson@mentor.com>
Tue, 8 Jan 2013 20:31:07 +0000 (13:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Jan 2013 12:38:03 +0000 (12:38 +0000)
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@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/buildhistory-diff

index 3f27eabcdbd60355c207a264ea64f28c77832893..8493da47ef45acd915183527afe4b000698480b8 100755 (executable)
@@ -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: