[pypy-svn] r9293 - pypy/branch/dist-interpapp/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Thu Feb 17 20:03:01 CET 2005


Author: pedronis
Date: Thu Feb 17 20:03:01 2005
New Revision: 9293

Modified:
   pypy/branch/dist-interpapp/pypy/interpreter/main.py
Log:
fixed main.py



Modified: pypy/branch/dist-interpapp/pypy/interpreter/main.py
==============================================================================
--- pypy/branch/dist-interpapp/pypy/interpreter/main.py	(original)
+++ pypy/branch/dist-interpapp/pypy/interpreter/main.py	Thu Feb 17 20:03:01 2005
@@ -20,6 +20,7 @@
                  w(source), w(filename), w(cmd), w(0), w(0))
         mainmodule = module.Module(space, space.wrap("__main__"))
         w_globals = mainmodule.w_dict
+        space.setitem(w_globals, w('__builtins__'), space.builtin)
 
         pycode = space.interpclass_w(w_code)
         retval = pycode.exec_code(space, w_globals, w_globals)



More information about the Pypy-commit mailing list