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 15:05:25 +0000 |
commit | 036e8fc414e8a4aab245be64ff0aefdc54cae0c3 (patch) | |
tree | fcf8df4908ace1a43d7085e5c96cebd9745639a4 | |
parent | 181e76c4b9832acbc03fe7cee862af06674c3f70 (diff) | |
download | ast2050-yocto-poky-036e8fc414e8a4aab245be64ff0aefdc54cae0c3.zip ast2050-yocto-poky-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>
-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 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: |