bokr at oz.net
Thu Sep 9 10:41:36 EDT 2004
On 7 Sep 2004 11:07:44 -0700, cjankowski at hbr-inc.com (Chris Jankowski) wrote:
>I am still fairly new to the Python community and world of Python
> I am having some trouble changing the output directory when I call
>Any sugguestions would be greatly appreciated. It seems to work fine,
>if I put the file in a directory that I am calling it from, like
>outputdir = './temp' or I use the "C" drive w/ outputdir = ''. All I
>am doing is converting a .pdf to a .tif.
>device = 'jpeg'
>pdffile = 'c:/Chris_J_Stuff/chris.pdf'
>outputdir = "c:\\Chris_J_Stuff\\"
>suffix = 'tif'
>os.system(ghost_dir + ' -dNOPAUSE -dQUIET -sBATCH -sDEVICE=%s
>-sOUTPUTFILE=% s/page%%d.%s %s' % (device, outputdir,suffix,
>Thank you in advance.
Suggest replacing 'os.system' with 'print repr' until it looks right.
More information about the Python-list