[pypy-commit] pypy vendor-rename: Change pypy/module/sys/initpath.py to find the stdlib which is now in lib-python/2.

Manuel Jacob noreply at buildbot.pypy.org
Sun Mar 3 20:11:33 CET 2013


Author: Manuel Jacob
Branch: vendor-rename
Changeset: r61968:2752a68d972a
Date: 2013-03-03 20:11 +0100
http://bitbucket.org/pypy/pypy/changeset/2752a68d972a/

Log:	Change pypy/module/sys/initpath.py to find the stdlib which is now
	in lib-python/2.

diff --git a/pypy/module/sys/initpath.py b/pypy/module/sys/initpath.py
--- a/pypy/module/sys/initpath.py
+++ b/pypy/module/sys/initpath.py
@@ -91,8 +91,7 @@
     ``lib_pypy``. If they cannot be found, it raises OSError.
     """
     from pypy.module.sys.version import CPYTHON_VERSION
-    dirname = '%d.%d' % (CPYTHON_VERSION[0],
-                         CPYTHON_VERSION[1])
+    dirname = '%d.%d' % CPYTHON_VERSION[0]
     lib_python = os.path.join(prefix, 'lib-python')
     python_std_lib = os.path.join(lib_python, dirname)
     _checkdir(python_std_lib)


More information about the pypy-commit mailing list