import importlib


def import_(module_name, name):
    """Imports an object by a relative module path::

       Profiler = import_('profiling.profiler', 'Profiler')

    """
    module = importlib.import_module(module_name, __package__)
    return getattr(module, name)