def user_cache_dir(appname):
    '\n    Return full path to the user-specific cache dir for this application.\n\n        "appname" is the name of application.\n\n    Typical user cache directories are:\n        Mac OS X:   ~/Library/Caches/<AppName>\n        Unix:       ~/.cache/<AppName> (XDG default)\n        Windows:      C:\\Users\\<username>\\AppData\\Local\\<AppName>\\Cache\n\n    On Windows the only suggestion in the MSDN docs is that local settings go\n    in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the\n    non-roaming app data dir (the default returned by `user_data_dir`). Apps\n    typically put cache data somewhere *under* the given dir here. Some\n    examples:\n        ...\\Mozilla\\Firefox\\Profiles\\<ProfileName>\\Cache\n        ...\\Acme\\SuperApp\\Cache\\1.0\n\n    OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.\n    '
    if (sys.platform == 'win32'):
        path = os.path.normpath(_get_win_folder('CSIDL_LOCAL_APPDATA'))
        path = os.path.join(path, appname, 'Cache')
    elif (sys.platform == 'darwin'):
        path = os.path.expanduser('~/Library/Caches')
        path = os.path.join(path, appname)
    else:
        path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
        path = os.path.join(path, appname)
    return path
Return full path to the user-specific cache dir for this application.

    "appname" is the name of application.

Typical user cache directories are:
    Mac OS X:   ~/Library/Caches/<AppName>
    Unix:       ~/.cache/<AppName> (XDG default)
    Windows:      C:\Users\<username>\AppData\Local\<AppName>\Cache

On Windows the only suggestion in the MSDN docs is that local settings go
in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the
non-roaming app data dir (the default returned by `user_data_dir`). Apps
typically put cache data somewhere *under* the given dir here. Some
examples:
    ...\Mozilla\Firefox\Profiles\<ProfileName>\Cache
    ...\Acme\SuperApp\Cache\1.0

OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.
def user_cache_dir(appname):
    '\n    Return full path to the user-specific cache dir for this application.\n\n        "appname" is the name of application.\n\n    Typical user cache directories are:\n        Mac OS X:   ~/Library/Caches/<AppName>\n        Unix:       ~/.cache/<AppName> (XDG default)\n        Windows:      C:\\Users\\<username>\\AppData\\Local\\<AppName>\\Cache\n\n    On Windows the only suggestion in the MSDN docs is that local settings go\n    in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the\n    non-roaming app data dir (the default returned by `user_data_dir`). Apps\n    typically put cache data somewhere *under* the given dir here. Some\n    examples:\n        ...\\Mozilla\\Firefox\\Profiles\\<ProfileName>\\Cache\n        ...\\Acme\\SuperApp\\Cache\\1.0\n\n    OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.\n    '
    if (sys.platform == 'win32'):
        path = os.path.normpath(_get_win_folder('CSIDL_LOCAL_APPDATA'))
        path = os.path.join(path, appname, 'Cache')
    elif (sys.platform == 'darwin'):
        path = os.path.expanduser('~/Library/Caches')
        path = os.path.join(path, appname)
    else:
        path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
        path = os.path.join(path, appname)
    return path