comparison mercurial/windows.py @ 10156:c31ac3f7fd8f

windows: expand environment vars in find_exe This allows us to use ${ProgramFiles} in our [merge-tools] sections so we can provide locale safe program paths.
author Steve Borho <steve@borho.org>
date Tue, 29 Dec 2009 23:59:41 -0600
parents f0c5c59d878d
children 2f7a38f336f4
comparison
equal deleted inserted replaced
10153:000546ec7ced 10156:c31ac3f7fd8f
201 201
202 for path in os.environ.get('PATH', '').split(os.pathsep): 202 for path in os.environ.get('PATH', '').split(os.pathsep):
203 executable = findexisting(os.path.join(path, command)) 203 executable = findexisting(os.path.join(path, command))
204 if executable is not None: 204 if executable is not None:
205 return executable 205 return executable
206 return None 206 return findexisting(os.path.expanduser(os.path.expandvars(command)))
207 207
208 def set_signal_handler(): 208 def set_signal_handler():
209 try: 209 try:
210 set_signal_handler_win32() 210 set_signal_handler_win32()
211 except NameError: 211 except NameError: