##// END OF EJS Templates
utils_win32: calling SHGetPathFromIDList under NT is useless and broken...
Patrick Mezard -
r5611:60bd4e70 default
parent child Browse files
Show More
@@ -190,7 +190,7 b' def system_rcpath_win32():'
190 def user_rcpath_win32():
190 def user_rcpath_win32():
191 '''return os-specific hgrc search path to the user dir'''
191 '''return os-specific hgrc search path to the user dir'''
192 userdir = os.path.expanduser('~')
192 userdir = os.path.expanduser('~')
193 if userdir == '~':
193 if sys.getwindowsversion() != 2 and userdir == '~':
194 # We are on win < nt: fetch the APPDATA directory location and use
194 # We are on win < nt: fetch the APPDATA directory location and use
195 # the parent directory as the user home dir.
195 # the parent directory as the user home dir.
196 appdir = shell.SHGetPathFromIDList(
196 appdir = shell.SHGetPathFromIDList(
General Comments 0
You need to be logged in to leave comments. Login now