def from_file(file_path, silent=False):
    """
    Updates the values in the config from a Python file.  This function
    behaves as if the file was imported as module with the

    :param file_path:
    :param silent:
    """

    if os.path.isfile(file_path):
        module_spec = importlib.util.spec_from_file_location("config", file_path)
        d = importlib.util.module_from_spec(module_spec)
    else:
        raise FileNotFoundError(
            f"Unable to load config file: `{file_path}`"
        )

    try:
        with open(file_path) as config_file:
            exec(  # nosec: config file safe
                compile(config_file.read(), file_path, "exec"), d.__dict__
            )
    except OSError as e:
        if silent and e.errno in (errno.ENOENT, errno.EISDIR):
            return False
        e.strerror = "Unable to load configuration file (%s)" % e.strerror
        raise
    return d

    Updates the values in the config from a Python file.  This function
    behaves as if the file was imported as module with the

    :param file_path:
    :param silent:
    
lemur/factory.py