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 /scripts/buildhistory-diff | |
parent | 181e76c4b9832acbc03fe7cee862af06674c3f70 (diff) | |
download | 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>
Diffstat (limited to 'scripts/buildhistory-diff')
-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(): | |||
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: |