[Tutor] printing xps or gif
ALAN GAULD
alan.gauld at btinternet.com
Fri Jan 1 07:05:47 CET 2010
> Well I have a folder with some sub folders that have a combo of xps and gif
> files I want to be able to point the program to it and have it print the
> contents of each sub folder.
In that case I'd use os.walk to traverse
the folders and find the files.
I'd then use os.system() (or the subprocess
module for more control) and call whatever
program you would use to print the files
from the command line.
ghostscript may do it for the xps files,
for example.
HTH,
Alan G.
http://www.alan-g.me.uk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100101/a28258c5/attachment.htm>
More information about the Tutor
mailing list