def get_module(app, modname):
    """
    Internal function to load a module from a single app.
    """
    # Find out the app's __path__
    try:
        app_path = importlib.import_module(app).__path__
    except AttributeError:
        return

    # Use imp.find_module to find the app's modname.py
    try:
        imp.find_module(modname, app_path)
    except __HOLE__:
        return

    # Import the app's module file
    importlib.import_module('{}.{}'.format(app, modname))
dataset/ETHPy150Open ellmetha/django-precise-bbcode/precise_bbcode/core/loading.py/get_module