Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Configure the default hollandcfg instance in this module

        def setup_config(config_file):
    """
    Configure the default hollandcfg instance in this module
    """
    global hollandcfg

    if not config_file:
        LOGGER.debug("load_config called with not configuration file")
        hollandcfg.validate_config(CONFIGSPEC)
        print hollandcfg
        return

    config_file = os.path.abspath(config_file)
    LOGGER.debug("Loading %r", config_file)
    hollandcfg.clear()
    hollandcfg.filename = config_file
    hollandcfg.reload()
    hollandcfg.validate_config(CONFIGSPEC)
    hollandcfg.configdir = os.path.dirname(config_file)
        


src/h/o/holland-HEAD/holland/core/config/__init__.py   holland(Download)
from config import hollandcfg, setup_config, load_backupset_config, \
                   BaseConfig, ConfigError
from configobj import ConfigObj, ParseError, ConfigObjError
 
__all__ = [