windows: eliminate system_rcpath_win32()

This commit is contained in:
Adrian Buehlmann 2011-02-14 11:12:57 +01:00
parent 2f13e93b12
commit c0a4dc75ea

View File

@ -75,7 +75,7 @@ def openhardlinks():
_HKEY_LOCAL_MACHINE = 0x80000002L
def system_rcpath_win32():
def system_rcpath():
'''return default os-specific hgrc search path'''
rcpath = []
filename = executable_path()
@ -105,12 +105,6 @@ def system_rcpath_win32():
rcpath.append(os.path.join(p, f))
return rcpath
def system_rcpath():
try:
return system_rcpath_win32()
except:
return [r'c:\mercurial\mercurial.ini']
def user_rcpath():
'''return os-specific hgrc search path to the user dir'''
try: