hgext/largefiles/lfutil.py
changeset 34645 75979c8d4572
parent 34641 bb6544b1c56e
child 34646 238abf65a8ad
equal deleted inserted replaced
34644:c0a6c19690ff 34645:75979c8d4572
    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':