Skip to contentSkip to conversation

buildhistory-diff: prepend to sys.path

PATCH New Christopher Larson 1 participant 1 message Jan 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildhistory-diff: prepend to sys.path

From: Christopher Larson <[email protected]>

This ensures that regardless of what else is in our search path, we always use the bitbake corresponding to the running buildhistory-diff command.

---
 scripts/buildhistory-diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/buildhistory-diff +1 -1
index 3f27eab..8493da4 100755
@@ -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:
Signature · 1 line
1.8.0.3