##// END OF EJS Templates
util_win32: fix Windows version checking (issue1358)...
Patrick Mezard -
r7427:f21e3d0e default
parent child Browse files
Show More
@@ -245,7 +245,7 b' def system_rcpath_win32():'
245 def user_rcpath_win32():
245 def user_rcpath_win32():
246 '''return os-specific hgrc search path to the user dir'''
246 '''return os-specific hgrc search path to the user dir'''
247 userdir = os.path.expanduser('~')
247 userdir = os.path.expanduser('~')
248 if sys.getwindowsversion() != 2 and userdir == '~':
248 if sys.getwindowsversion()[3] != 2 and userdir == '~':
249 # We are on win < nt: fetch the APPDATA directory location and use
249 # We are on win < nt: fetch the APPDATA directory location and use
250 # the parent directory as the user home dir.
250 # the parent directory as the user home dir.
251 appdir = shell.SHGetPathFromIDList(
251 appdir = shell.SHGetPathFromIDList(
General Comments 0
You need to be logged in to leave comments. Login now