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
def setUp(self): self.init = {"x": 1} self.env = E.environment(self.init)