[pypy-svn] r75075 - pypy/branch/fast-forward/pypy/tool
benjamin at codespeak.net
benjamin at codespeak.net
Thu Jun 3 21:05:07 CEST 2010
Author: benjamin
Date: Thu Jun 3 21:04:34 2010
New Revision: 75075
Modified:
pypy/branch/fast-forward/pypy/tool/stdlib___future__.py
Log:
make __future__ be loaded from correct dir
Modified: pypy/branch/fast-forward/pypy/tool/stdlib___future__.py
==============================================================================
--- pypy/branch/fast-forward/pypy/tool/stdlib___future__.py (original)
+++ pypy/branch/fast-forward/pypy/tool/stdlib___future__.py Thu Jun 3 21:04:34 2010
@@ -2,7 +2,9 @@
def load_module():
import py
- module_path = py.path.local(__file__).dirpath().dirpath().dirpath('lib-python/2.5.2/__future__.py')
+ from pypy.module.sys.version import CPYTHON_VERSION_DIR
+ to_future = "lib-python/%s/__future__.py" % (CPYTHON_VERSION_DIR,)
+ module_path = py.path.local(__file__).dirpath().dirpath().dirpath(to_future)
execfile(str(module_path), globals())
load_module()
More information about the Pypy-commit
mailing list