def _setup_installed_modules(self):
        from jinja2 import PackageLoader
        self.models_modules = []

        if not self.conf.INSTALLED_MODULES:
            raise RuntimeError("INSTALLED_MODULES is mandatory setting.")

        # setup module template loader
        for module_path in self.conf.INSTALLED_MODULES:
            print("Setup {0} module...".format(module_path))

            module = None
            try:
                module = importlib.import_module(module_path)
            except ImportError:
                continue

            # setup module template loader
            self.loaders.append(PackageLoader(module_path, "templates"))

            # setup jinja template additions
            try:
                importlib.import_module(module_path + ".jinja2_addons")
            except ImportError:
                pass

            # try import models
            try:
                models_mod = importlib.import_module(module_path + ".models")
                self.models_modules.append(models_mod)
            except __HOLE__:
                pass

        if Library._instance:
            Library._instance._update_env(self.jinja_env)
dataset/ETHPy150Open niwinz/tornado-webtools/webtools/application.py/Application._setup_installed_modules