import importlib


def import_module_attribute(function_path):
    """Import and return a module attribute given a full path."""
    module, attribute = function_path.rsplit(".", 1)
    app_module = importlib.import_module(module)
    return getattr(app_module, attribute)