def thread(self, *args): print "Started interp thread" locals = args[0] game = pybw_swig.getGame() locals.update(dict(game=game, swig=pybw_swig)) i = code.InteractiveConsole(locals=locals) i.interact()
def onConnect(self): self.game = pybw_swig.getGame() print "Connected to broodwar!"
def onConnect(self): game = pybw_swig.getGame() self.consoleClient = pybw_repl.ConsoleClient() self.consoleClient.start_repl(dict(game=game, swig=pybw_swig))