[Tutor] converting all files in a directory with subprocess
Alan Gauld
alan.gauld at btinternet.com
Tue May 20 02:07:18 CEST 2008
"Tim Michelsen" <timmichelsen at gmx-topmail.de> 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...
Just a thought,
Alan G.
More information about the Tutor
mailing list