def Rebuild(verbose=1):
 clsidToTypelib.clear()
 infos = GetGeneratedInfos()
 if (verbose and len(infos)):
  print 'Rebuilding cache of generated files for COM support...'
 for info in infos:
  (iid, lcid, major, minor) = info
  if verbose:
   print 'Checking', GetGeneratedFileName(*info)
  try:
   AddModuleToCache(iid, lcid, major, minor, verbose, 0)
  except:
   print ('Could not add module %s - %s: %s' % (info, sys.exc_info()[0], sys.exc_info()[1]))
 if (verbose and len(infos)):
  print 'Done.'
 _SaveDicts()

def Rebuild ( verbose = 1 ) : clsidToTypelib . clear ( ) infos = GetGeneratedInfos ( ) if ( verbose and len ( infos ) ) : print 'Rebuilding cache of generated files for COM support...' for info in infos : ( iid , lcid , major , minor ) = info if verbose : print 'Checking' , GetGeneratedFileName ( * info ) try : AddModuleToCache ( iid , lcid , major , minor , verbose , 0 ) except : print ( 'Could not add module %s - %s: %s' % ( info , sys . exc_info ( ) [ 0 ] , sys . exc_info ( ) [ 1 ] ) ) if ( verbose and len ( infos ) ) : print 'Done.' _SaveDicts ( )
rebuild the cache indexes from the file system .