equal
deleted
inserted
replaced
203 return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] |
203 return [os.path.join(os.path.dirname(filename), 'mercurial.ini')] |
204 |
204 |
205 def user_rcpath_win32(): |
205 def user_rcpath_win32(): |
206 '''return os-specific hgrc search path to the user dir''' |
206 '''return os-specific hgrc search path to the user dir''' |
207 userdir = os.path.expanduser('~') |
207 userdir = os.path.expanduser('~') |
208 if userdir == '~': |
208 if sys.getwindowsversion() != 2 and userdir == '~': |
209 # We are on win < nt: fetch the APPDATA directory location and use |
209 # We are on win < nt: fetch the APPDATA directory location and use |
210 # the parent directory as the user home dir. |
210 # the parent directory as the user home dir. |
211 appdir = shell.SHGetPathFromIDList( |
211 appdir = shell.SHGetPathFromIDList( |
212 shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_APPDATA)) |
212 shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_APPDATA)) |
213 userdir = os.path.dirname(appdir) |
213 userdir = os.path.dirname(appdir) |