summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-02-26 20:33:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-03-02 20:54:58 (GMT)
commit5e7939f75d40d9c86275a9d93e9a124dfa5b5e34 (patch)
treedb1ae997b5a1f5cf5a4bc844a7817e50f10ea740
parentbda76e2e4ef7273d07a2809d10029d862459aae3 (diff)
downloadpowder-5e7939f75d40d9c86275a9d93e9a124dfa5b5e34.zip
powder-5e7939f75d40d9c86275a9d93e9a124dfa5b5e34.tar.gz
persistence
-rw-r--r--build/tpt_console.py4
1 files changed, 2 insertions, 2 deletions
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)