def import_config(config_path):
if not os.path.isfile(config_path):<EOL><INDENT>raise ConfigBuilderError(<EOL>'<STR_LIT>' + config_path)<EOL><DEDENT>loader = importlib.machinery.SourceFileLoader(config_path, config_path)<EOL>module = loader.load_module()<EOL>if not hasattr(module, '<STR_LIT>') or not isinstance(module.config, Config):<EOL><INDENT>raise ConfigBuilderError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(config_path))<EOL><DEDENT>return module.config<EOL>
Import a Config from a given path, relative to the current directory.

    The module specified by the config file must contain a variable called `configuration` that is
    assigned to a Config object.