| Home | Trees | Indices | Help |
|
|---|
|
|
Support code for the freedesktop.org basedir spec.
This module provides functions for locating configuration files.
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
xdg_data_home = os.environ.get('XDG_DATA_HOME', os.path.join(_
|
|
xdg_cache_home = os.environ.get('XDG_CACHE_HOME', os.path.join
|
|
xdg_config_home = os.environ.get('XDG_CONFIG_HOME', os.path.jo
|
|
xdg_data_dirs = filter(lambda x: x, xdg_data_dirs)
|
|
xdg_cache_dirs = filter(lambda x: x, xdg_cache_dirs)
|
|
xdg_config_dirs = filter(lambda x: x, xdg_config_dirs)
|
|
| Function Details |
Ensure $XDG_CONFIG_HOME/<resource>/ exists, and return its path. 'resource' should normally be the name of your application. Use this when SAVING configuration settings. Use the xdg_config_dirs variable for loading. |
Returns an iterator which gives each directory named 'resource' in the configuration search path. Information provided by earlier directories should take precedence over later ones (ie, the user's config dir comes first). |
Ensure $XDG_CACHE_HOME/<resource>/ exists, and return its path. 'resource' should normally be the name of your application. |
Returns an iterator which gives each directory named 'resource' in the cache search path. Information provided by earlier directories should take precedence over later ones (ie, the user's cache dir comes first). |
Returns an iterator which gives each directory named 'resource' in the shared data search path. Information provided by earlier directories should take precedence over later ones. Since: 0.28 |
Returns the first result from load_data_paths, or None if there is nothing to load. Since: 0.28 |
| Variables Details |
xdg_data_home
|
xdg_cache_home
|
xdg_config_home
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 21 21:21:15 2008 | http://epydoc.sourceforge.net |