Example #1
0
def defaultEnvironment():
    # XXX modules
    #from t.p.util.sibpath
    path = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.join('library', 'builtins.slisp'))
    from safelisp import builtins
    e = E.environment(builtins.getFunctions())
    defaultInterpreter().evalString(open(path).read(), e)
    return e
Example #2
0
 def setUp(self):
     self.init = {"x": 1}
     self.env = E.environment(self.init)