# HG changeset patch # User Beliar # Date 1331382707 -3600 # Node ID 0d042224349059be835f3c160f272609bf9a65cd # Parent 90b2545f7459e7ace64768d8f870dd375ce09179 The getGameEnvironment method of GameState will now return a globals dictionary where __builtins__ is disabled. diff -r 90b2545f7459 -r 0d0422243490 gamestate.py --- a/gamestate.py Wed Mar 07 20:04:48 2012 +0100 +++ b/gamestate.py Sat Mar 10 13:31:47 2012 +0100 @@ -29,6 +29,7 @@ self.maps = {} self.npcs_met = set() self.funcs = { + "__builtins__":None, "meet":self.meet, "met":self.met, "sqrt":math.sqrt, @@ -175,4 +176,4 @@ can work with it. This can be used in functions like eval or exec""" vals = {} vals.update(self.getObjectDictOfMap(self.current_map_name)) - return vals, self.funcs \ No newline at end of file + return self.funcs, vals \ No newline at end of file