]> git.sur5r.net Git - u-boot/commitdiff
buildman: Put our local libraries first in the path
authorSimon Glass <sjg@chromium.org>
Sun, 18 Sep 2016 22:48:34 +0000 (16:48 -0600)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
If patman is installed on the machine (e.g. in the standard dist-packages
directory), it will find libraries from there in preference to our local
libraries. Adjust the order of the path to ensure that local libraries are
found first.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/buildman.py

index d0afeda6c07734a7d7505757a437818a3ed25df7..607429df7bcd9fb045e30ce1fa81a6cba318110d 100755 (executable)
@@ -15,7 +15,7 @@ import unittest
 
 # Bring in the patman libraries
 our_path = os.path.dirname(os.path.realpath(__file__))
-sys.path.append(os.path.join(our_path, '../patman'))
+sys.path.insert(1, os.path.join(our_path, '../patman'))
 
 # Our modules
 import board