mercurial/util_win32.py
changeset 2117 760339ccc799
parent 2054 e18beba54a7e
child 2176 9b42304d9896
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')]