parameters: ()
docstring: Set all module __file__ and __cached__ attributes to an absolute path
docstring_summary: Set all module __file__ and __cached__ attributes to an absolute path
docstring_tokens: Set all module __file__ and __cached__ attributes to an absolute path
function: def abs_paths():
      """Set all module __file__ and __cached__ attributes to an absolute path"""
      for m in set(sys.modules.values()):
          if (getattr(getattr(m, '__loader__', None), '__module__', None) !=
                  '_frozen_importlib'):
              continue   # don't mess with a PEP 302-supplied __file__
          try:
              m.__file__ = os.path.abspath(m.__file__)
          except (AttributeError, OSError):
              pass
          try:
              m.__cached__ = os.path.abspath(m.__cached__)
          except (AttributeError, OSError):
              pass
function_tokens: def abs_paths ( ) : for m in set ( sys . modules . values ( ) ) : if ( getattr ( getattr ( m , '__loader__' , None ) , '__module__' , None ) != '_frozen_importlib' ) : continue # don't mess with a PEP 302-supplied __file__ try : m . __file__ = os . path . abspath ( m . __file__ ) except ( AttributeError , OSError ) : pass try : m . __cached__ = os . path . abspath ( m . __cached__ ) except ( AttributeError , OSError ) : pass