##// END OF EJS Templates
fix issue 217....
Vadim Gelfer -
r2117:760339cc default
parent child Browse files
Show More
@@ -574,7 +574,10 b" if os.name == 'nt':"
574 sys.stdout = winstdout(sys.stdout)
574 sys.stdout = winstdout(sys.stdout)
575
575
576 def system_rcpath():
576 def system_rcpath():
577 return [r'c:\mercurial\mercurial.ini']
577 try:
578 return system_rcpath_win32()
579 except:
580 return [r'c:\mercurial\mercurial.ini']
578
581
579 def os_rcpath():
582 def os_rcpath():
580 '''return default os-specific hgrc search path'''
583 '''return default os-specific hgrc search path'''
@@ -164,7 +164,7 b' def testpid(pid):'
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)
General Comments 0
You need to be logged in to leave comments. Login now