diff --git a/git-cl-upload-hook b/git-cl-upload-hook index e39fc26ee7..f8d8602586 100755 --- a/git-cl-upload-hook +++ b/git-cl-upload-hook @@ -28,7 +28,7 @@ if not depot_tools_path: # If we found depot_tools, add it to the script's import path. # Use realpath to normalize the actual path if depot_tools_path: - sys.path.append(os.path.realpath(depot_tools_path)) + sys.path.insert(0, os.path.realpath(depot_tools_path)) else: print "ERROR: Could not find depot_tools in your PATH." print "ERROR: Please add it to your PATH and try again."