[pypy-svn] r41248 - pypy/dist/lib-python/modified-2.4.1
pedronis at codespeak.net
pedronis at codespeak.net
Sat Mar 24 18:34:17 CET 2007
Author: pedronis
Date: Sat Mar 24 18:34:16 2007
New Revision: 41248
Modified:
pypy/dist/lib-python/modified-2.4.1/site.py
Log:
obscure hack to avoid forcing all our mixed modules at py.py load time.
Modified: pypy/dist/lib-python/modified-2.4.1/site.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/site.py (original)
+++ pypy/dist/lib-python/modified-2.4.1/site.py Sat Mar 24 18:34:16 2007
@@ -70,7 +70,10 @@
"""Set all module' __file__ attribute to an absolute path"""
for m in sys.modules.values():
try:
- m.__file__ = os.path.abspath(m.__file__)
+ prev = m.__file__
+ new = os.path.abspath(m.__file__)
+ if prev != new:
+ m.__file__ = new
except AttributeError:
continue
More information about the Pypy-commit
mailing list