start default application for read a pdf from python

2009-09-08 Thread Angelo Ballabio
I try to start a default application for reading a pdf file inside the python script. I try os.startfile(name,option) but say me startfile not implemented there are some system to start for example acrobar or okular from the script with a name of pdf file? thenks Angelo -- http://mail.pytho

Re: start default application for read a pdf from python

2009-09-08 Thread Angelo Ballabio
Angelo Grant Edwards ha scritto: On 2009-09-08, Angelo Ballabio wrote: I try to start a default application for reading a pdf file inside the python script. I try os.startfile(name,option) but say me startfile not implemented Are you _sure_ it says startfile not implemented? Or does it

Re: start default application for read a pdf from python

2009-09-09 Thread Angelo Ballabio
Thenks for this suggestion, at the end I find this solution import os . . #then where I decide to show the file in the default application I put this #file_name the name I construct with path and all necessary #recor contain all the data of one record end the 4th position