(self)
Load router modules
Load router modules
Load router modules
def load(self):
        """Load router modules"""
        for router in routers.__all__:
            # relative to zarp.py
            mod = importlib.import_module('modules.parameter.routers.%s'
                                                                    % router)
            self.routers[router] = []
            for vuln in mod.__all__:
                path = "modules.parameter.routers.%s.%s" % (router, vuln)
                if util.check_dependency(path):
                    mod = getattr(importlib.import_module(path, 'routers'), vuln)
                    self.routers[router].append(mod)
def load ( self ) : for router in routers . __all__ : # relative to zarp.py mod = importlib . import_module ( 'modules.parameter.routers.%s' % router ) self . routers [ router ] = [ ] for vuln in mod . __all__ : path = "modules.parameter.routers.%s.%s" % ( router , vuln ) if util . check_dependency ( path ) : mod = getattr ( importlib . import_module ( path , 'routers' ) , vuln ) self . routers [ router ] . append ( mod )