예제 #1
0
파일: config.py 프로젝트: unnch/spell-sat
 def cleanup(self, shutdown = False):
     if self.__ready:
         superClass.cleanup(self, shutdown)
         LOG("Cleanup standalone CFG interface")
         REGISTRY['SIM'].cleanup()
         REGISTRY.remove('SIM')
         self.__ready = False
예제 #2
0
파일: shell.py 프로젝트: unnch/spell-sat
def Cleanup():
    import __main__
    from spell.lib.drivermgr import DriverManager
    from spell.lib.registry import REGISTRY
    from server.ui.cmdline import ClientIF
    DriverManager.instance().cleanup(shutdown=True)
    for ifc in REGISTRY.interfaces():
        REGISTRY.remove(ifc)
        if __main__.__dict__.has_key(ifc):
            __main__.__dict__.pop(ifc)
    if 'CIF' in REGISTRY.interfaces():
        ClientIF.cleanup()
예제 #3
0
파일: shell.py 프로젝트: unnch/spell-sat
def Cleanup():
    import __main__
    from spell.lib.drivermgr import DriverManager
    from spell.lib.registry import REGISTRY
    from server.ui.cmdline import ClientIF

    DriverManager.instance().cleanup(shutdown=True)
    for ifc in REGISTRY.interfaces():
        REGISTRY.remove(ifc)
        if __main__.__dict__.has_key(ifc):
            __main__.__dict__.pop(ifc)
    if "CIF" in REGISTRY.interfaces():
        ClientIF.cleanup()