##// END OF EJS Templates
win32: remove try-catch block of GetModuleFileNameEx (issue2480)...
Yuya Nishihara -
r12966:5f80f44d stable
parent child Browse files
Show More
@@ -102,11 +102,6 b' def lookup_reg(key, valname=None, scope='
102
102
103 def system_rcpath_win32():
103 def system_rcpath_win32():
104 '''return default os-specific hgrc search path'''
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 # Use mercurial.ini found in directory with hg.exe
106 # Use mercurial.ini found in directory with hg.exe
112 progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini')
107 progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini')
General Comments 0
You need to be logged in to leave comments. Login now