def load(config):
    """Loads a stacker configuration by modifying sys paths, loading lookups,
    etc.

    Args:
        config (:class:`Config`): the stacker config to load.

    Returns:
        :class:`Config`: the stacker config provided above.

    """

    if config.sys_path:
        logger.debug("Appending %s to sys.path.", config.sys_path)
        sys.path.append(config.sys_path)
        logger.debug("sys.path is now %s", sys.path)
    if config.lookups:
        for key, handler in config.lookups.items():
            register_lookup_handler(key, handler)

    return config
def load ( config ) : if config . sys_path : logger . debug ( "Appending %s to sys.path." , config . sys_path ) sys . path . append ( config . sys_path ) logger . debug ( "sys.path is now %s" , sys . path ) if config . lookups : for key , handler in config . lookups . items ( ) : register_lookup_handler ( key , handler ) return config
Loads a stacker configuration by modifying sys paths, loading lookups,
    etc.

    Args:
        config (:class:`Config`): the stacker config to load.

    Returns:
        :class:`Config`: the stacker config provided above.