"Paul Boddie" <[EMAIL PROTECTED]> writes:
[...]
> I've just uploaded a patch/suggestion/module (#1301512) to SourceForge
> which seeks to provide the equivalent of os.startfile for KDE and GNOME
> (as well as Windows) as part of a generic desktop module:
>
> http://sourceforge.net/tracker/index.ph
"Martin Miller" <[EMAIL PROTECTED]> writes:
> IMHO, the fact that there is no way to wait for the application to
> finish is major deficiency with os.startfile() -- and why I often
> cannot use it instead of other techniques [such as the much more
> involved but limited os.spawnv() function].
>
>
IMHO, the fact that there is no way to wait for the application to
finish is major deficiency with os.startfile() -- and why I often
cannot use it instead of other techniques [such as the much more
involved but limited os.spawnv() function].
I don't if if this is just a limitation of the implement
Dennis Lee Bieber skrev:
> On Thu, 22 Sep 2005 15:16:09 +0100, Dan <[EMAIL PROTECTED]> declaimed
> the following in comp.lang.python:
>
> > > I would like to know how to open a PDF document from a python script
> >
> > You mean open it and display it to the user? Under Windows you may be
> > able t
Dan <[EMAIL PROTECTED]> writes:
> Under Linux you can probably use xpdf or gpdf:
>
> os.system("xpdf /path/to/file.pdf")
>
> Note that you should check the return code of "system" to see if the
> execution was successful. For example, the user might not have xpdf
> installed.
This is the problem
> I would like to know how to open a PDF document from a python script
You mean open it and display it to the user? Under Windows you may be
able to get away with just "executing" the file (as though it were an
executable):
import os
os.system("c:/path/to/file.pdf")
Under Linux you can proba
Hello,
I would like to know
how to open a PDF document from a python script, any suggestions are
appreciated.
Thanks,
JR
--
http://mail.python.org/mailman/listinfo/python-list