diff options
author | Christopher Larson <chris_larson@mentor.com> | 2013-01-08 13:31:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-09 12:38:03 +0000 |
commit | 246990e8a3da01020f65d151971883740eacb378 (patch) | |
tree | 6bc0490a1edf9584dd741c26e723f08ffb55b3ca | |
parent | d00acdbfa7d10804ff832009888c441fda51e412 (diff) | |
download | openembedded-core-246990e8a3da01020f65d151971883740eacb378.tar.gz openembedded-core-246990e8a3da01020f65d151971883740eacb378.tar.bz2 openembedded-core-246990e8a3da01020f65d151971883740eacb378.zip |
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@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/buildhistory-diff | 2 |
1 files changed, 1 insertions, 1 deletions
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: |