Mercurial > public > mercurial-scm > hg
comparison mercurial/util_win32.py @ 2117:760339ccc799
fix issue 217.
fall back to fixed path if windows >= nt function not present.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 25 Apr 2006 08:37:05 -0700 |
parents | e18beba54a7e |
children | 9b42304d9896 |
comparison
equal
deleted
inserted
replaced
2115:fd77b7ee4aac | 2117:760339ccc799 |
---|---|
162 return status == win32con.STILL_ACTIVE | 162 return status == win32con.STILL_ACTIVE |
163 except pywintypes.error, details: | 163 except pywintypes.error, details: |
164 return details[0] != winerror.ERROR_INVALID_PARAMETER | 164 return details[0] != winerror.ERROR_INVALID_PARAMETER |
165 return True | 165 return True |
166 | 166 |
167 def system_rcpath(): | 167 def system_rcpath_win32(): |
168 '''return default os-specific hgrc search path''' | 168 '''return default os-specific hgrc search path''' |
169 proc = win32api.GetCurrentProcess() | 169 proc = win32api.GetCurrentProcess() |
170 filename = win32process.GetModuleFileNameEx(proc, 0) | 170 filename = win32process.GetModuleFileNameEx(proc, 0) |
171 return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] | 171 return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] |