

@classmethod
def load_menus(c):
    '\n        load_menus loops through INSTALLED_APPS and loads the menu.py\n        files from them.\n        '
    if app.loaded:
        return
    app_names = settings.INSTALLED_APPS
    if apps:
        app_names = [app_config.name for app_config in apps.get_app_configs()]
    for app in app_names:
        if app.startswith('django.'):
            continue
        menu_module = ('%s.menus' % app)
        try:
            __import__(menu_module, fromlist=['menu'])
        except ImportError:
            pass
    c.loaded = True

dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py Menu.load_menus/VarMisuse@16/57 `c`->`app`