from pathlib import Path


def get_config_path(config):
    """
    Retrieve the absolute, expanded path from the given configuration object
    """
    section = config.sections()[0]
    return Path(config.get(section, "path")).expanduser().absolute()