def generate_project_list(config, path):
 tmp = ('%s.%d.tmp' % (path, os.getpid()))
 f = file(tmp, 'w')
 try:
  generate_project_list_fp(config=config, fp=f)
 finally:
  f.close()
 os.rename(tmp, path)

def generate_project_list ( config , path ) : tmp = ( '%s.%d.tmp' % ( path , os . getpid ( ) ) ) f = file ( tmp , 'w' ) try : generate_project_list_fp ( config = config , fp = f ) finally : f . close ( ) os . rename ( tmp , path )
generate projects list for gitweb .