]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/patman/checkpatch.py
patman: Look for checkpatch in the scripts directory
[karo-tx-uboot.git] / tools / patman / checkpatch.py
index d831087d88b39706b6afee2e70d79ecc8fe434ca..f72f8ee261e0de410622ec859d511d9b9846a637 100644 (file)
@@ -26,10 +26,12 @@ import re
 import terminal
 
 def FindCheckPatch():
+    top_level = gitutil.GetTopLevel()
     try_list = [
         os.getcwd(),
         os.path.join(os.getcwd(), '..', '..'),
-        os.path.join(gitutil.GetTopLevel(), 'tools'),
+        os.path.join(top_level, 'tools'),
+        os.path.join(top_level, 'scripts'),
         '%s/bin' % os.getenv('HOME'),
         ]
     # Look in current dir