def reload(self): self.admin_broadcast('Reloading...') self.console_write('Reloading...') self.rotatelogfile() self.parseFiles() reload(sys.modules['SayHooks']) reload(sys.modules['protocol.AutoDict']) reload(sys.modules['protocol.Channel']) reload(sys.modules['protocol.Battle']) reload(sys.modules['protocol.Protocol']) reload(sys.modules['protocol']) reload(sys.modules['ChanServ']) reload(sys.modules['Client']) reload(sys.modules['SQLUsers']) self.SayHooks = __import__('SayHooks') ip2country.reloaddb() thread.start_new_thread(self._rebind_slow, ()) # why should reloading block the thread? :)
def reload(self): self.admin_broadcast('Reloading...') self.console_write('Reloading...') self.rotatelogfile() self.parseFiles() reload(sys.modules['SayHooks']) reload(sys.modules['protocol.AutoDict']) reload(sys.modules['protocol.Channel']) reload(sys.modules['protocol.Battle']) reload(sys.modules['protocol.Protocol']) reload(sys.modules['protocol']) reload(sys.modules['ChanServ']) reload(sys.modules['Client']) reload(sys.modules['SQLUsers']) self.SayHooks = __import__('SayHooks') ip2country.reloaddb() thread.start_new_thread( self._rebind_slow, ()) # why should reloading block the thread? :)
def reload(self): self.admin_broadcast('Reloading...') self.console_write('Reloading...') self.parseFiles() toreload = [ "SayHooks", "ChanServ", "BaseClient", "SQLUsers", "Client", "CryptoHandler", "protocol.AutoDict", "protocol.Channel", "protocol.Battle", "protocol.Protocol", "protocol", ] for module in toreload: reload(sys.modules[module]) self.SayHooks = __import__('SayHooks') ip2country.reloaddb() self._rebind_slow()
def reload(self): self.parseFiles() ip2country.reloaddb()
def reload(self): self.admin_broadcast('Reloading...') self.console_write('Reloading...') self.parseFiles() ip2country.reloaddb()