Show More
@@ -180,7 +180,11 b' def testpid(pid):' | |||||
180 | def system_rcpath_win32(): |
|
180 | def system_rcpath_win32(): | |
181 | '''return default os-specific hgrc search path''' |
|
181 | '''return default os-specific hgrc search path''' | |
182 | proc = win32api.GetCurrentProcess() |
|
182 | proc = win32api.GetCurrentProcess() | |
|
183 | try: | |||
|
184 | # This will fail on windows < NT | |||
183 | filename = win32process.GetModuleFileNameEx(proc, 0) |
|
185 | filename = win32process.GetModuleFileNameEx(proc, 0) | |
|
186 | except: | |||
|
187 | filename = win32api.GetModuleFileName(0) | |||
184 | return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] |
|
188 | return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] | |
185 |
|
189 | |||
186 | def user_rcpath(): |
|
190 | def user_rcpath(): |
General Comments 0
You need to be logged in to leave comments.
Login now