Steve Borho  committed bd1773a

editor: try to find tool name in path if tool.executable path fails

  • Participants
  • Parent commits ce60406
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/util/

             if p:
                 return p
     exe = _toolstr(ui, tool, "executable", tool)
-    return util.findexe(util.expandpath(exe))
+    path = util.findexe(util.expandpath(exe))
+    if path:
+        return path
+    elif tool != exe:
+        return util.findexe(tool)
+    return None
 def _findeditor(repo, files):
     '''returns tuple of editor name and editor path.