[pypy-svn] r40980 - pypy/dist/pypy/interpreter

pedronis at codespeak.net pedronis at codespeak.net
Wed Mar 21 22:19:55 CET 2007


Author: pedronis
Date: Wed Mar 21 22:19:54 2007
New Revision: 40980

Modified:
   pypy/dist/pypy/interpreter/gateway.py
Log:
use the appropriate module name for not geinterped app level parts of mixed modules



Modified: pypy/dist/pypy/interpreter/gateway.py
==============================================================================
--- pypy/dist/pypy/interpreter/gateway.py	(original)
+++ pypy/dist/pypy/interpreter/gateway.py	Wed Mar 21 22:19:54 2007
@@ -828,7 +828,7 @@
     "NOT_RPYTHON"
     from pypy.interpreter.pycode import PyCode
     w_glob = space.newdict()
-    space.setitem(w_glob, space.wrap('__name__'), space.wrap('__builtin__'))
+    space.setitem(w_glob, space.wrap('__name__'), space.wrap(self.modname))
     space.exec_(self.code, w_glob, w_glob,
                 hidden_applevel=self.hidden_applevel)
     return w_glob



More information about the Pypy-commit mailing list