Hi,
···
On Tue, Dec 8, 2009 at 9:34 AM, Ignacio ignacio.puyol@gmail.com wrote:
Hi,
I’m making an application, and I would like to include a link or a button to open a pdf that resides in the same folder as the .py archive, so I could take both of them to another computer and run the program (and open the pdf).
Do you know how I could do it?
Thanks,
Ignacio
If you’re on Windows, use the following:
import os
os.startfile(filepath)
Otherwise, see what the others said or check out subprocess or os.system.
Mike Driscoll