update_config(configfile=None,
modulename=None)
| source code
|
Update the system configuration from given config file and/or
module.
'configfile' is a ConfigObj (INI-style) config file, 'modulename' a
module path in dotted notation. The function looks for files with a
".cfg" extension if the given module name refers to a package
directory or a file with the base name of the right-most part of the
module path and a ".cfg" extension added.
If both 'configfile' and 'modulname' are specified, the module is read
first, followed by the config file. This means that the config file's
options override the options in the module file.
|