<filename>pipeline/utils.py<gh_stars>1-10
import importlib


def load_config(config_path):
    module = importlib.import_module(config_path)
    assert module.hasattr("Config"), "Config file should contain Config class"

    config = module.Config()
    return config

<filename>pipeline/utils.py<gh_stars>1-10
import importlib


def load_config(config_path):
    module = importlib.import_module(config_path)
    assert module.hasattr("Config"), "Config file should contain Config class"

    config = module.Config()
    return config
