Home | Trees | Indices | Help |
|
---|
|
Load config values from environment, config file, or defaults. Applications should not import this module directly. Instead, 'import VisionEgg' will result in an attribute 'VisionEgg.config', which has the configuration options as attributes. This module searches for configuration options from the following places: environment variables, configuration file, generic defaults. Environment variables take precedence over the configuration file, which takes precedence over the generic defaults. This module also determines the location of the Vision Egg directories. The VISIONEGG_SYSTEM_DIR directory is by default the 'VisionEgg' directory in Python's site-packages. VISIONEGG_USER_DIR is by default 'VisionEgg' in the directory specified by the environment variable HOME, if it exists, and os.curdir otherwise. You can create a configuration file that contains defaults for your system. This should be a text file with key/value pairs. Blank lines and anything after the pound symbol ('#') will be treated as a comment. Each key/value pairs should be on its own line and in the format 'KEY=VALUE'. By default the file 'VisionEgg.cfg' from the VISIONEGG_USER_DIR or VISIONEGG_SYSTEM_DIR as specified above. However, You can specify a different filename and directory by setting the environment variable VISIONEGG_CONFIG_FILE.
Classes | |
Config Holds global Vision Egg configuration information. |
Functions | |||
|
Variables | |
defaults = {'VISIONEGG_ALWAYS_START_LOGGING': 0, 'VISIONEGG_DO
|
|
extra_darwin_defaults = {'VISIONEGG_DARWIN_MAXPRIORITY_CONVENT
|
Variables Details |
defaults
|
extra_darwin_defaults
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sat Jun 7 15:40:09 2008 | http://epydoc.sourceforge.net |