Hello,
just for the records:
below is some code that works
### convert all t2t docs in a directory.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
import fnmatch
documentation_directory = './doc/'
for file in os.listdir(documentation_directory):
if fnmatch.fnmatch(file, '*.t2t'):
### assemble file name
filepath = documentation_directory+file
### run txt2tags
#subprocess.call(['txt2tags', '--target=html', '--toc',
documentation_directory+file])
subprocess.call(['txt2tags', '--target=html', '--toc', filepath])
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor