mercurial/win32.py
branchstable
changeset 12966 5f80f44d23c5
parent 12938 bf826c0b9537
child 13285 2ef915184ff2
--- a/mercurial/win32.py	Tue Nov 09 20:25:56 2010 +0000
+++ b/mercurial/win32.py	Thu Nov 11 01:12:51 2010 +0900
@@ -102,12 +102,7 @@
 
 def system_rcpath_win32():
     '''return default os-specific hgrc search path'''
-    proc = win32api.GetCurrentProcess()
-    try:
-        # This will fail on windows < NT
-        filename = win32process.GetModuleFileNameEx(proc, 0)
-    except:
-        filename = win32api.GetModuleFileName(0)
+    filename = win32api.GetModuleFileName(0)
     # Use mercurial.ini found in directory with hg.exe
     progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini')
     if os.path.isfile(progrc):