Beispiel #1
0
 def __init__(self):
     NakLogger.debug("Loading InterfaceManager...")
     interfaceClassName = ""
     for item in ConfigManager.getConfig("INTERFACE","names").split(','):
         NakLogger.debug("Loading " + item + " Interface")
         interfaceClassModule = "interfaces." + item.capitalize() + "Interface"
         interfaceClassName = item.capitalize() + "Interface"
         mod = __import__(interfaceClassModule)
         submod = getattr(mod, interfaceClassName)
         klass = getattr(submod, interfaceClassName)
         self.interfaces.append(klass())
     NakLogger.debug("Loading InterfaceManager End.")
Beispiel #2
0
 def __init__(self):
     NakLogger.consoleDebugActive(True)
     NakLogger.debug("Starting MARVIN...")
     ConfigManager.loadConf()
     self.loadInterfaces()