From bda76e2e4ef7273d07a2809d10029d862459aae3 Mon Sep 17 00:00:00 2001 From: Lieuwe Date: Sun, 27 Feb 2011 04:32:53 +0800 Subject: try eval first diff --git a/build/tpt_console.py b/build/tpt_console.py index 9e5e824..655c108 100644 --- a/build/tpt_console.py +++ b/build/tpt_console.py @@ -95,9 +95,12 @@ def handle(txt): def _handle(txt): #print "handling '%s'"%txt try: - exec txt - except Exception as ex: - error(ex) + sys.stdout.write(repr(eval(tmp))) + except: + try: + exec txt + except Exception as ex: + error(ex) \ No newline at end of file -- cgit v0.9.2-21-gd62e