Re: [Tutor] converting all files in a directory with subprocess

2008-05-19 Thread Alan Gauld
"Tim Michelsen" <[EMAIL PROTECTED]> wrote in below is some code that works ### convert all t2t docs in a directory. for file in os.listdir(documentation_directory): if fnmatch.fnmatch(file, '*.t2t'): You might be able to do this more succinctly using the glob.glob() function... Ju

Re: [Tutor] converting all files in a directory with subprocess

2008-05-19 Thread Tim Michelsen
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.fnmat

Re: [Tutor] converting all files in a directory with subprocess

2008-05-08 Thread Tim Golden
Tim Michelsen wrote: Hello, I am working on a automatic documentation program to convert my txt2tags based documentations sources into HTMl files. I want to use txt2tags via command line. Here's my code: # #!/usr/bin/env python # -*- coding: utf-8 -*- import os import subprocess import

[Tutor] converting all files in a directory with subprocess

2008-05-08 Thread Tim Michelsen
Hello, I am working on a automatic documentation program to convert my txt2tags based documentations sources into HTMl files. I want to use txt2tags via command line. Here's my code: # #!/usr/bin/env python # -*- coding: utf-8 -*- import os import subprocess import fnmatch documentation