Beispiel #1
0
def load(fname, names=__all__, **kwargs):
    """Load settings from a file."""
    settings = Config.load(fname, **kwargs)
    for k in names:
        setattr(this_module, k, settings[k])
Beispiel #2
0
def load(fname: str, names: tp.Iterable[str] = __all__, **kwargs) -> None:
    """Load settings from a file."""
    settings = Config.load(fname, **kwargs)
    for k in names:
        setattr(this_module, k, settings[k])