mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
windows: eliminate system_rcpath_win32()
This commit is contained in:
parent
2f13e93b12
commit
c0a4dc75ea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user