Jython 2.5.2

This commit is contained in:
Dmitry Jemerov
2011-04-12 13:33:32 +02:00
parent 1ed8d4283d
commit df84f4a992
61 changed files with 3101 additions and 2918 deletions
+5 -2
View File
@@ -61,6 +61,7 @@ ImportError exception, it is silently ignored.
import sys
import os
import __builtin__
ModuleType = type(os)
def makepath(*paths):
@@ -73,8 +74,10 @@ def makepath(*paths):
def abs__file__():
"""Set all module' __file__ attribute to an absolute path"""
for m in sys.modules.values():
if hasattr(m, '__loader__'):
continue # don't mess with a PEP 302-supplied __file__
if not isinstance(m, ModuleType) or hasattr(m, '__loader__'):
# only modules need the abspath in Jython. and don't mess
# with a PEP 302-supplied __file__
continue
f = getattr(m, '__file__', None)
if f is None:
continue