#! /usr/bin/python #-- coding: GBK -- import sys,os,string def is_embeded( html, code ): return html.rfind( code ) >= 0 def embed_uml_to_html( ): fhtml = "asdoc-output/package-summary.html" embedcode = "" htmlContent = "" try: fl = open( fhtml, "r" ) htmlContent = fl.read( ); fl.close() except IOError as e: print fhtml + e.strerror; return if not is_embeded( htmlContent, embedcode ): if htmlContent.find( "= 0: htmlContent = htmlContent.replace( "