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

Annotation of /graphlib/html/replace.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (view) (download) (as text)

1 : efrank 1.1 import os, sys
2 :    
3 :     IMG_PATT = "GRAPH_IMG"
4 :     REPL_PATT = '<a href="..%sgraph.gif"><img border="0" align="left" src="..%sgraph_tb.gif"></a>' % (os.sep, os.sep)
5 :     fname = 'public%sgraphlib-module.html' % os.sep
6 :    
7 :     lines = file(fname).readlines()
8 :     fp = open(fname, "wt")
9 :     for line in lines:
10 :     line = line.replace(IMG_PATT, REPL_PATT)
11 :     fp.write(line)
12 :     fp.close()
13 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3