comparison mercurial/posix.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 4d684d8210a1
children adf5f4bdeaf6
comparison
equal deleted inserted replaced
14268:a55a0045704c 14271:4030630fb59c
219 219
220 def isowner(st): 220 def isowner(st):
221 """Return True if the stat object st is from the current user.""" 221 """Return True if the stat object st is from the current user."""
222 return st.st_uid == os.getuid() 222 return st.st_uid == os.getuid()
223 223
224 def find_exe(command): 224 def findexe(command):
225 '''Find executable for command searching like which does. 225 '''Find executable for command searching like which does.
226 If command is a basename then PATH is searched for command. 226 If command is a basename then PATH is searched for command.
227 PATH isn't searched if command is an absolute or relative path. 227 PATH isn't searched if command is an absolute or relative path.
228 If command isn't found None is returned.''' 228 If command isn't found None is returned.'''
229 if sys.platform == 'OpenVMS': 229 if sys.platform == 'OpenVMS':