[Tutor] Launch external application?

Terry Carroll carroll at tjc.com
Mon Jun 4 21:57:56 CEST 2007


On Fri, 1 Jun 2007, Brad Tompkins wrote:

> Is there an easy way to make a python script that will launch an external
> application for me ?  I'm using Windows XP and I'm trying to create a little
> front end that will launch the VLC media player for me.

In addition to Grant's approach, if your filetype (say "mpg") is already 
associated with VLC, you can use this:

os.startfile('filename.mpg')
 



More information about the Tutor mailing list