#!/usr/bin/python #By Dan, GPL, etc. #***************************************************************************** #*You need to have docutils and SilverCity installed for this script to work.* #***************************************************************************** import os, sys def DoDoc(title): print 'Processing:', title, '...' cwd = os.getcwd() fname = os.path.join(cwd, title + '.html') if title == 'gpl': os.system('pyrst2html.py --output-encoding=ascii %s.txt %s.html' % (title, title)) f = file(fname, 'rb') text = f.read() f.close() text = text.replace('charset=ascii', '').replace('encoding="ascii"', '') text = text.replace('