##// END OF EJS Templates
win98: fall back to win32api.GetModuleFileName if needed.
Volker Kleinfeld -
r2285:0912f807 default
parent child Browse files
Show More
@@ -180,7 +180,11 b' def testpid(pid):'
180 180 def system_rcpath_win32():
181 181 '''return default os-specific hgrc search path'''
182 182 proc = win32api.GetCurrentProcess()
183 filename = win32process.GetModuleFileNameEx(proc, 0)
183 try:
184 # This will fail on windows < NT
185 filename = win32process.GetModuleFileNameEx(proc, 0)
186 except:
187 filename = win32api.GetModuleFileName(0)
184 188 return [os.path.join(os.path.dirname(filename), 'mercurial.ini')]
185 189
186 190 def user_rcpath():
General Comments 0
You need to be logged in to leave comments. Login now