summaryrefslogtreecommitdiffstats
path: root/scripts/buildhistory-diff
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-01-08 20:31:07 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-09 15:05:25 (GMT)
commit036e8fc414e8a4aab245be64ff0aefdc54cae0c3 (patch)
treefcf8df4908ace1a43d7085e5c96cebd9745639a4 /scripts/buildhistory-diff
parent181e76c4b9832acbc03fe7cee862af06674c3f70 (diff)
downloadpoky-036e8fc414e8a4aab245be64ff0aefdc54cae0c3.tar.gz
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. (From OE-Core rev: 246990e8a3da01020f65d151971883740eacb378) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/buildhistory-diff')
-rwxr-xr-xscripts/buildhistory-diff2
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():
44 print("Unable to find bitbake by searching parent directory of this script or PATH") 44 print("Unable to find bitbake by searching parent directory of this script or PATH")
45 sys.exit(1) 45 sys.exit(1)
46 46
47 sys.path.extend([newpath, bitbakepath + '/lib']) 47 sys.path[0:0] = [newpath, bitbakepath + '/lib']
48 import oe.buildhistory_analysis 48 import oe.buildhistory_analysis
49 49
50 if len(sys.argv) > 3: 50 if len(sys.argv) > 3: