def iter_importers(fullname=''):
 if fullname.startswith('.'):
  raise ImportError('Relative module names not supported')
 if ('.' in fullname):
  pkg = '.'.join(fullname.split('.')[:(-1)])
  if (pkg not in sys.modules):
   __import__(pkg)
  path = (getattr(sys.modules[pkg], '__path__', None) or [])
 else:
  for importer in sys.meta_path:
   (yield importer)
  path = sys.path
 for item in path:
  (yield get_importer(item))
 if ('.' not in fullname):
  (yield ImpImporter())

def iter_importers ( fullname = '' ) : if fullname . startswith ( '.' ) : raise ImportError ( 'Relative module names not supported' ) if ( '.' in fullname ) : pkg = '.' . join ( fullname . split ( '.' ) [ : ( - 1 ) ] ) if ( pkg not in sys . modules ) : __import__ ( pkg ) path = ( getattr ( sys . modules [ pkg ] , '__path__' , None ) or [ ] ) else : for importer in sys . meta_path : ( yield importer ) path = sys . path for item in path : ( yield get_importer ( item ) ) if ( '.' not in fullname ) : ( yield ImpImporter ( ) )
yield pep 302 importers for the given module name if fullname contains a .