From 5e7939f75d40d9c86275a9d93e9a124dfa5b5e34 Mon Sep 17 00:00:00 2001 From: Lieuwe Date: Sun, 27 Feb 2011 04:33:43 +0800 Subject: persistence diff --git a/build/tpt_console.py b/build/tpt_console.py index 655c108..31c2522 100644 --- a/build/tpt_console.py +++ b/build/tpt_console.py @@ -95,10 +95,10 @@ def handle(txt): def _handle(txt): #print "handling '%s'"%txt try: - sys.stdout.write(repr(eval(tmp))) + sys.stdout.write(repr(eval(tmp,handle.glob))) except: try: - exec txt + exec txt,handle.glob except Exception as ex: error(ex) -- cgit v0.9.2-21-gd62e