()
Set all module' __file__ attribute to an absolute path
Set all module' __file__ attribute to an absolute path
Set all module __file__ attribute to an absolute path
def abs__file__():
    """Set all module' __file__ attribute to an absolute path"""
    for m in sys.modules.values():
        if (_is_jython and 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
        m.__file__ = os.path.abspath(f)
def abs__file__ ( ) : for m in sys . modules . values ( ) : if ( _is_jython and 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 m . __file__ = os . path . abspath ( f )