Did I find the right examples for you? yes no

All Samples(15)  |  Call(11)  |  Derive(0)  |  Import(4)
Return full path to the user-specific cache dir for this application.

    "appname" is the name of application.
        If None, just the system directory is returned.
    "appauthor" (only required and used on Windows) is the name of the
        appauthor or distributing body for this application. Typically
        it is the owning company name. This falls back to appname.
    "version" is an optional version path element to append to the
        path. You might want to use this if you want multiple versions
        of your app to be able to run independently. If used, this(more...)

        def user_cache_dir(appname=None, appauthor=None, version=None, opinion=True):
    r"""Return full path to the user-specific cache dir for this application.

        "appname" is the name of application.
            If None, just the system directory is returned.
        "appauthor" (only required and used on Windows) is the name of the
            appauthor or distributing body for this application. Typically
            it is the owning company name. This falls back to appname.
        "version" is an optional version path element to append to the
            path. You might want to use this if you want multiple versions
            of your app to be able to run independently. If used, this
            would typically be ".".
            Only applied when appname is present.
        "opinion" (boolean) can be False to disable the appending of
            "Cache" to the base app data dir for Windows. See
            discussion below.

    Typical user cache directories are:
        Mac OS X:   ~/Library/Caches/
        Unix:       ~/.cache/ (XDG default)
        Win XP:     C:\Documents and Settings\\Local Settings\Application Data\\\Cache
        Vista:      C:\Users\\AppData\Local\\\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` above). Apps typically
    put cache data somewhere *under* the given dir here. Some examples:
        ...\Mozilla\Firefox\Profiles\\Cache
        ...\Acme\SuperApp\Cache\1.0
    OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.
    This can be disabled with the `opinion=False` option.
    """
    if sys.platform == "win32":
        if appauthor is None:
            appauthor = appname
        path = os.path.normpath(_get_win_folder("CSIDL_LOCAL_APPDATA"))
        if appname:
            path = os.path.join(path, appauthor, appname)
            if opinion:
                path = os.path.join(path, "Cache")
    elif sys.platform == 'darwin':
        path = os.path.expanduser('~/Library/Caches')
        if appname:
            path = os.path.join(path, appname)
    else:
        path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
        if appname:
            path = os.path.join(path, appname)
    if appname and version:
        path = os.path.join(path, version)
    return path
        


src/h/a/hairball-0.3rc1/hairball/__init__.py   hairball(Download)
 
    DEFAULT_CACHE_DIR = appdirs.user_cache_dir(
        appname='Hairball', appauthor='bboe')
 
    @staticmethod

src/g/n/gnodeclient-0.3.2/gnodeclient/conf.py   gnodeclient(Download)
        self['password'] = options.get('password', None)
        self['location'] = options.get('location', 'http://localhost:8000')
        self['cache_dir'] = options.get('cache_dir', appdirs.user_cache_dir(Configuration.NAME,
                                                                            appauthor=Configuration.ATHOR))
        self['log_dir'] = options.get('log_file', os.path.join(appdirs.user_data_dir(Configuration.NAME,

src/v/i/visbio-0.3.2/visbio/visbio.py   visbio(Download)
def get_maps_cache_dir():
    cache_dir = appdirs.user_cache_dir('visbio', appauthor="Zachary King")
    map_cache_dir = join(cache_dir, "map_cache", "")
    try:
        os.makedirs(map_cache_dir)

src/e/n/engineer-0.5.0/engineer/conf.py   engineer(Download)
from datetime import datetime
 
from appdirs import user_cache_dir, user_data_dir
from jinja2.loaders import ChoiceLoader
import pytz
        THEMES_DIR = (ROOT_DIR / 'themes').abspath()
        LIB_DIR = (STATIC_DIR / 'engineer/lib/').abspath()
        JINJA_CACHE_DIR = ensure_exists(path(user_cache_dir('Engineer', 'Engineer')) / '_jinja_cache')
 
        FOUNDATION_CSS = 'foundation'

src/e/n/engineer-HEAD/engineer/conf.py   engineer(Download)
from datetime import datetime
 
from appdirs import user_cache_dir, user_data_dir
from jinja2.loaders import ChoiceLoader
import pytz
        THEMES_DIR = (ROOT_DIR / 'themes').abspath()
        LIB_DIR = (STATIC_DIR / 'engineer/lib/').abspath()
        JINJA_CACHE_DIR = ensure_exists(path(user_cache_dir('Engineer', 'Engineer')) / '_jinja_cache')
 
        FOUNDATION_CSS = 'foundation'

src/p/y/PyXRD-0.5.4/pyxrd/data/settings.py   PyXRD(Download)
import os
from pyxrd.__version import __version__
from appdirs import user_data_dir, user_cache_dir, user_log_dir
 
### General Information ###
    ("USER_DATA", user_data_dir('PyXRD'), None),
    ("LOG_DIR", user_log_dir('PyXRD'), None),
    ("CACHE_DIR", user_cache_dir('PyXRD'), None),
    ("DEFAULT_PHASES", "default phases/", "USER_DATA"),
    ("DEFAULT_COMPONENTS", "default components/", "DEFAULT_DATA"),

src/f/c/fcache-0.4.4/fcache/cache.py   fcache(Download)
            raise ValueError("invalid subcache name: 'cache'.")
        self._is_subcache = bool(subcache)
        app_cache_dir = appdirs.user_cache_dir(appname, appname)
        subcache_dir = os.path.join(app_cache_dir, *subcache)
        self.cache_dir = os.path.join(subcache_dir, 'cache')

src/n/o/nodedoc-HEAD/bin/nodedoc.py   nodedoc(Download)
 
log = logging.getLogger("nodedoc")
CACHE_DIR = appdirs.user_cache_dir("nodedoc", "trentm")
 
def _get_doc_versions():

src/p/a/parakeet-HEAD/parakeet/c_backend/config.py   parakeet(Download)
# Directory to use for caching generated modules.
# Set to None to disable caching.
from appdirs import user_cache_dir
cache_dir = user_cache_dir('parakeet')
 

src/d/a/datacache-0.1/datacache/common.py   datacache(Download)
    if subdir is None:
        subdir = "datacache"
    return appdirs.user_cache_dir(subdir)
 
def build_path(filename, subdir = None):

  1 | 2  Next