Show More
@@ -574,7 +574,10 b" if os.name == 'nt':" | |||
|
574 | 574 | sys.stdout = winstdout(sys.stdout) |
|
575 | 575 | |
|
576 | 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 | 582 | def os_rcpath(): |
|
580 | 583 | '''return default os-specific hgrc search path''' |
@@ -164,7 +164,7 b' def testpid(pid):' | |||
|
164 | 164 | return details[0] != winerror.ERROR_INVALID_PARAMETER |
|
165 | 165 | return True |
|
166 | 166 | |
|
167 | def system_rcpath(): | |
|
167 | def system_rcpath_win32(): | |
|
168 | 168 | '''return default os-specific hgrc search path''' |
|
169 | 169 | proc = win32api.GetCurrentProcess() |
|
170 | 170 | filename = win32process.GetModuleFileNameEx(proc, 0) |
General Comments 0
You need to be logged in to leave comments.
Login now