##// END OF EJS Templates
win32: remove try-catch block of GetModuleFileNameEx (issue2480)...
Yuya Nishihara -
r12966:5f80f44d stable
parent child Browse files
Show More
@@ -102,12 +102,7 b' def lookup_reg(key, valname=None, scope='
102 102
103 103 def system_rcpath_win32():
104 104 '''return default os-specific hgrc search path'''
105 proc = win32api.GetCurrentProcess()
106 try:
107 # This will fail on windows < NT
108 filename = win32process.GetModuleFileNameEx(proc, 0)
109 except:
110 filename = win32api.GetModuleFileName(0)
105 filename = win32api.GetModuleFileName(0)
111 106 # Use mercurial.ini found in directory with hg.exe
112 107 progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini')
113 108 if os.path.isfile(progrc):
General Comments 0
You need to be logged in to leave comments. Login now