(self)
Load modules.  Verify the module loads successfully
            before loading it up into the module list; this prevents
            crashes related to unmet dependencies.
Load modules.  Verify the module loads successfully
            before loading it up into the module list; this prevents
            crashes related to unmet dependencies.
Load modules . Verify the module loads successfully before loading it up into the module list ; this prevents crashes related to unmet dependencies .
def load(self):
        """ Load modules.  Verify the module loads successfully
            before loading it up into the module list; this prevents
            crashes related to unmet dependencies.
        """
        for module in poison.__all__:
            if util.check_dependency('src.modules.poison.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.poison.%s' % module, 'poison'), 
                            module)
                self.poison.append(mod)
                self.total += 1
        for module in dos.__all__:
            if util.check_dependency('src.modules.dos.%s' % module):
                mod = getattr(importlib.import_module(
                                'src.modules.dos.%s' % module, 'dos'), 
                                module)
                self.dos.append(mod)
                self.total += 1
        for module in scanner.__all__:
            if util.check_dependency('src.modules.scanner.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.scanner.%s' % module, 'scanner'), 
                            module)
                self.scanner.append(mod)
                self.total += 1
        for module in services.__all__:
            if util.check_dependency('src.modules.services.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.services.%s' % module, 'services'), 
                            module)
                self.services.append(mod)
                self.total += 1
        for module in sniffer.__all__:
            if util.check_dependency('src.modules.sniffer.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.sniffer.%s' % module, 'sniffer'), 
                            module)
                self.sniffers.append(mod)
                self.total += 1
        for module in parameter.__all__:
            if util.check_dependency('src.modules.parameter.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.parameter.%s' % module, 'parameter'), 
                            module)
                self.parameter.append(mod)
                self.total += 1
        for module in attacks.__all__:
            if util.check_dependency('src.modules.attacks.%s' % module):
                mod = getattr(importlib.import_module(
                            'src.modules.attacks.%s' % module, 'attacks'), 
                            module)
                self.attacks.append(mod)
                self.total += 1
def load ( self ) : for module in poison . __all__ : if util . check_dependency ( 'src.modules.poison.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.poison.%s' % module , 'poison' ) , module ) self . poison . append ( mod ) self . total += 1 for module in dos . __all__ : if util . check_dependency ( 'src.modules.dos.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.dos.%s' % module , 'dos' ) , module ) self . dos . append ( mod ) self . total += 1 for module in scanner . __all__ : if util . check_dependency ( 'src.modules.scanner.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.scanner.%s' % module , 'scanner' ) , module ) self . scanner . append ( mod ) self . total += 1 for module in services . __all__ : if util . check_dependency ( 'src.modules.services.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.services.%s' % module , 'services' ) , module ) self . services . append ( mod ) self . total += 1 for module in sniffer . __all__ : if util . check_dependency ( 'src.modules.sniffer.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.sniffer.%s' % module , 'sniffer' ) , module ) self . sniffers . append ( mod ) self . total += 1 for module in parameter . __all__ : if util . check_dependency ( 'src.modules.parameter.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.parameter.%s' % module , 'parameter' ) , module ) self . parameter . append ( mod ) self . total += 1 for module in attacks . __all__ : if util . check_dependency ( 'src.modules.attacks.%s' % module ) : mod = getattr ( importlib . import_module ( 'src.modules.attacks.%s' % module , 'attacks' ) , module ) self . attacks . append ( mod ) self . total += 1