()
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 hasattr(m, '__loader__'):
            continue   # don't mess with a PEP 302-supplied __file__
        try:
            m.__file__ = os.path.abspath(m.__file__)
        except (AttributeError, OSError):
            pass
def abs__file__ ( ) : for m in sys . modules . values ( ) : if hasattr ( m , '__loader__' ) : continue # don't mess with a PEP 302-supplied __file__ try : m . __file__ = os . path . abspath ( m . __file__ ) except ( AttributeError , OSError ) : pass