equal
deleted
inserted
replaced
72 def _usercachedir(ui): |
72 def _usercachedir(ui): |
73 '''Return the location of the "global" largefiles cache.''' |
73 '''Return the location of the "global" largefiles cache.''' |
74 path = ui.configpath(longname, 'usercache', None) |
74 path = ui.configpath(longname, 'usercache', None) |
75 if path: |
75 if path: |
76 return path |
76 return path |
77 if pycompat.osname == 'nt': |
77 if pycompat.iswindows: |
78 appdata = encoding.environ.get('LOCALAPPDATA',\ |
78 appdata = encoding.environ.get('LOCALAPPDATA',\ |
79 encoding.environ.get('APPDATA')) |
79 encoding.environ.get('APPDATA')) |
80 if appdata: |
80 if appdata: |
81 return os.path.join(appdata, longname) |
81 return os.path.join(appdata, longname) |
82 elif pycompat.sysplatform == 'darwin': |
82 elif pycompat.sysplatform == 'darwin': |