Re: Launch file based on association

2006-01-23 Thread Chris Cioffi
On 23/01/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Chris Cioffi wrote:> Q:  If I have a file called "spreadsheet.xls" how can I launch it in what> ever program it is associated with?  I don't care if that program is Excel> or OpenOffice Calc.  I just want to launch the file. >>> import os>>> hel

Re: Launch file based on association

2006-01-23 Thread Paul Boddie
Fredrik Lundh wrote: > Chris Cioffi wrote: > > > Q: If I have a file called "spreadsheet.xls" how can I launch it in what > > ever program it is associated with? I don't care if that program is Excel > > or OpenOffice Calc. I just want to launch the file. > > >>> import os > >>> help(os.startfil

Re: Launch file based on association

2006-01-23 Thread Fredrik Lundh
Chris Cioffi wrote: > Q: If I have a file called "spreadsheet.xls" how can I launch it in what > ever program it is associated with? I don't care if that program is Excel > or OpenOffice Calc. I just want to launch the file. >>> import os >>> help(os.startfile) Help on built-in function startf

Launch file based on association

2006-01-23 Thread Chris Cioffi
Q:  If I have a file called "spreadsheet.xls" how can I launch it in what ever program it is associated with?  I don't care if that program is Excel or OpenOffice Calc.  I just want to launch the file.Since I want to just launch the new process, naturally I looked at os.execl().  However, I can't