Show More
@@ -102,12 +102,7 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() |
|
105 | filename = win32api.GetModuleFileName(0) | |
106 | try: |
|
|||
107 | # This will fail on windows < NT |
|
|||
108 | filename = win32process.GetModuleFileNameEx(proc, 0) |
|
|||
109 | except: |
|
|||
110 | 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') | |
113 | if os.path.isfile(progrc): |
|
108 | if os.path.isfile(progrc): |
General Comments 0
You need to be logged in to leave comments.
Login now