From: Christopher Larson Date: Tue, 8 Jan 2013 20:31:07 +0000 (-0700) Subject: buildhistory-diff: prepend to sys.path X-Git-Tag: 2015-4~8123 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=246990e8a3da01020f65d151971883740eacb378;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index 3f27eabcdb..8493da47ef 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: