src/polydatum/config.py
def from_module(module_name):
    """
    Load a configuration module and return a Config
    """
    d = importlib.import_module(module_name)
    config = {}
    for key in dir(d):
        if key.isupper():
            config[key] = getattr(d, key)
    return Config(config)
def from_module(module_name):
    d = importlib.import_module(module_name)
    config = {}
    for key in dir(d):
        if key.isupper():
            config[key] = getattr(d, key)
    return Config(config)
def from_module ( module_name ) : d = importlib . import_module ( module_name ) config = { } for key in dir ( d ) : if key . isupper ( ) : config [ key ] = getattr ( d , key ) return Config ( config )
Load a configuration module and return a Config
Load a configuration module and return a Config