def __load_functions__ (symtbl):
    """Loads all Python functions from the module specified in the
    ``functions`` configuration parameter (in config.yaml) into the given
    symbol table (Python dictionary).
    """
    modname = ait.config.get('functions', None)

    if modname:
        module = pydoc.locate(modname)

        if module is None:
            msg = 'No module named %d (from config.yaml functions: parameter)'
            raise ImportError(msg % modname)

        for name in dir(module):
            func = getattr(module, name)
            if callable(func):
                symtbl[name] = func
def __load_functions__ ( symtbl ) : modname = ait . config . get ( 'functions' , None ) if modname : module = pydoc . locate ( modname ) if module is None : msg = 'No module named %d (from config.yaml functions: parameter)' raise ImportError ( msg % modname ) for name in dir ( module ) : func = getattr ( module , name ) if callable ( func ) : symtbl [ name ] = func
Loads all Python functions from the module specified in the
    ``functions`` configuration parameter (in config.yaml) into the given
    symbol table (Python dictionary).