hgext/largefiles/lfutil.py
changeset 41759 aaad36b88298
parent 41676 0531dff73d0b
child 43076 2372284d9457
equal deleted inserted replaced
41758:15d3facfa40a 41759:aaad36b88298
    74     '''Return the location of the "global" largefiles cache.'''
    74     '''Return the location of the "global" largefiles cache.'''
    75     path = ui.configpath(name, 'usercache')
    75     path = ui.configpath(name, 'usercache')
    76     if path:
    76     if path:
    77         return path
    77         return path
    78     if pycompat.iswindows:
    78     if pycompat.iswindows:
    79         appdata = encoding.environ.get('LOCALAPPDATA',\
    79         appdata = encoding.environ.get('LOCALAPPDATA',
    80                         encoding.environ.get('APPDATA'))
    80                                        encoding.environ.get('APPDATA'))
    81         if appdata:
    81         if appdata:
    82             return os.path.join(appdata, name)
    82             return os.path.join(appdata, name)
    83     elif pycompat.isdarwin:
    83     elif pycompat.isdarwin:
    84         home = encoding.environ.get('HOME')
    84         home = encoding.environ.get('HOME')
    85         if home:
    85         if home: