diff mercurial/scmwindows.py @ 37098:e24802ea8dbd

rcutil: directly call win32.executablepath() Since it isn't supported on POSIX platform, we don't need to double the compatibility layers.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 13:30:50 +0900
parents d74b0cff94a9
children 57875cf423c9
line wrap: on
line diff
--- a/mercurial/scmwindows.py	Sat Mar 24 17:19:32 2018 +0900
+++ b/mercurial/scmwindows.py	Sat Mar 24 13:30:50 2018 +0900
@@ -21,7 +21,7 @@
 def systemrcpath():
     '''return default os-specific hgrc search path'''
     rcpath = []
-    filename = util.executablepath()
+    filename = win32.executablepath()
     # Use mercurial.ini found in directory with hg.exe
     progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini')
     rcpath.append(progrc)