On Thursday 30 November 2006 20:50, Terry Carroll wrote: > On Thu, 30 Nov 2006, Dave S wrote: > > My app generates an on the fly PDF manual by using reportlab, once > > generated I would like it to be automatically opened and displayed by XP > > adobe reader. > > > > Here's where I get stuck. ... > > > > os.execv('E:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe', > > ('/n', '/s', 'user.pdf')) > > > > Does what I need and works great but I manualy searched around to find > > the path to AcroRd32.exe. Short of writting some code to scan any adobe > > dirs for this exe is there a more elegant way for me to ensure my app > > will work on any windows machine ? > > try this: > > os.startfile('user.pdf')
Neat, cool & 100% what I was looking for :):):) Cheers Dave PS I would offer to buy you a pint - but you probably don't live near Bedford England ! > > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor