[Bio] / graphlib / html / replace.py Repository:
ViewVC logotype

View of /graphlib/html/replace.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (as text) (annotate) (vendor branch)
Fri Mar 11 14:27:49 2005 UTC (14 years, 8 months ago) by efrank
Branch: MAIN, graphlib_0_5_1
CVS Tags: lwc, init, HEAD
Changes since 1.1: +0 -0 lines
graphlib for env migration

import os, sys

IMG_PATT  = "GRAPH_IMG"
REPL_PATT = '<a href="..%sgraph.gif"><img border="0" align="left" src="..%sgraph_tb.gif"></a>'   % (os.sep, os.sep)
fname     = 'public%sgraphlib-module.html' % os.sep

lines =  file(fname).readlines()
fp = open(fname, "wt")
for line in lines:
	line = line.replace(IMG_PATT, REPL_PATT)
	fp.write(line)
fp.close()
													  

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3