[Checkins] SVN: web/zf/trunk/htmlize.py Simplistic script to test
ReST correctness.
Martijn Faassen
faassen at infrae.com
Thu Sep 21 17:12:31 EDT 2006
Log message for revision 70311:
Simplistic script to test ReST correctness.
Changed:
A web/zf/trunk/htmlize.py
-=-
Added: web/zf/trunk/htmlize.py
===================================================================
--- web/zf/trunk/htmlize.py 2006-09-21 21:12:15 UTC (rev 70310)
+++ web/zf/trunk/htmlize.py 2006-09-21 21:12:31 UTC (rev 70311)
@@ -0,0 +1,12 @@
+import os
+
+for dirname, directories, files in os.walk('.'):
+ start, last = os.path.split(dirname)
+ if last.startswith('.svn'):
+ continue
+ for file in files:
+ filename = os.path.join(dirname, file)
+ name, extension = os.path.splitext(filename)
+ if extension == '.txt':
+ os.system('rst2html %s > %s' % (filename, name + '.html'))
+
More information about the Checkins
mailing list