comparison mercurial/windows.py @ 14271:4030630fb59c

rename util.find_exe to findexe
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 08 May 2011 20:35:46 +0200
parents 600e64004eb5
children d2d592718e90
comparison
equal deleted inserted replaced
14268:a55a0045704c 14271:4030630fb59c
161 # if you change this stub into a real check, please try to implement the 161 # if you change this stub into a real check, please try to implement the
162 # username and groupname functions above, too. 162 # username and groupname functions above, too.
163 def isowner(st): 163 def isowner(st):
164 return True 164 return True
165 165
166 def find_exe(command): 166 def findexe(command):
167 '''Find executable for command searching like cmd.exe does. 167 '''Find executable for command searching like cmd.exe does.
168 If command is a basename then PATH is searched for command. 168 If command is a basename then PATH is searched for command.
169 PATH isn't searched if command is an absolute or relative path. 169 PATH isn't searched if command is an absolute or relative path.
170 An extension from PATHEXT is found and added if not present. 170 An extension from PATHEXT is found and added if not present.
171 If command isn't found None is returned.''' 171 If command isn't found None is returned.'''