def scan_modules(self):
        """Loads the python modules specified in the JIP configuration.
        This will register any functions and classes decorated with
        one of the JIP decorators.
        """
        if self.__scanned:
            return
        path = getenv("JIP_MODULES", "")
        log.debug("Scanning modules")
        for module in path.split(":") + self.jip_modules + ['jip.scripts']:
            try:
                if module:
                    log.debug("Importing module: %s", module)
                    __import__(module)
            except __HOLE__, e:
                log.debug("Error while importing module: %s. "
                          "Trying file import", str(e))
                if exists(module):
                    self._load_from_file(module)
        self.__scanned = True
dataset/ETHPy150Open thasso/pyjip/jip/tools.py/Scanner.scan_modules