[pypy-svn] r75404 - pypy/branch/sys-prefix/pypy/module/sys

antocuni at codespeak.net antocuni at codespeak.net
Tue Jun 15 11:33:59 CEST 2010


Author: antocuni
Date: Tue Jun 15 11:33:57 2010
New Revision: 75404

Modified:
   pypy/branch/sys-prefix/pypy/module/sys/state.py
Log:
actually set sys.{prefix, exec_prefix}. We need to think what to do with
pypy_prefix, but I think it should be removed



Modified: pypy/branch/sys-prefix/pypy/module/sys/state.py
==============================================================================
--- pypy/branch/sys-prefix/pypy/module/sys/state.py	(original)
+++ pypy/branch/sys-prefix/pypy/module/sys/state.py	Tue Jun 15 11:33:57 2010
@@ -64,7 +64,11 @@
     except OSError:
         return space.w_None
     else:
-        space.setitem(space.sys.w_dict, space.wrap('pypy_prefix'),
+        space.setitem(space.sys.w_dict, space.wrap('pypy_prefix'), # XXX remove me
+                                        space.wrap(srcdir))
+        space.setitem(space.sys.w_dict, space.wrap('prefix'),
+                                        space.wrap(srcdir))
+        space.setitem(space.sys.w_dict, space.wrap('exec_prefix'),
                                         space.wrap(srcdir))
         return space.newlist([space.wrap(p) for p in path])
 



More information about the Pypy-commit mailing list