Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tajail.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-03-19 21:30:30 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-03-19 21:30:30 (GMT)
commit3e480dd17927aaf4bc1017e12303cdc2593cdffd (patch)
tree14614484a0607437e20cd152eb62fc5f36217631 /tajail.py
parent86101e1d9897d18af0dfbe5168a8b8ee2bf81286 (diff)
adding "pippy-programmable" blockv44
Diffstat (limited to 'tajail.py')
-rw-r--r--tajail.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tajail.py b/tajail.py
index 7fafed5..af57e56 100644
--- a/tajail.py
+++ b/tajail.py
@@ -1,4 +1,4 @@
-#Copyright (c) 2007-9, Playful Invention Company.
+#Copyright (c) 2009, Walter Bender (on behalf of Sugar Labs)
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
@@ -23,6 +23,7 @@ import re
from time import *
from math import *
from numpy import *
+from taturtle import *
def myfunc(lc, f, x):
# check to make sure no import calls are made
@@ -34,3 +35,8 @@ def myfunc(lc, f, x):
except:
return None
+def myfunc_import(lc, f, x):
+ userdefined = {}
+ exec f in globals(), userdefined
+ return userdefined['myblock'](lc,x)
+