Re: Determining an operating system's default browser

2006-02-12 Thread Paul Boddie
Jorgen Grahn wrote: > On 11 Feb 2006 11:44:29 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > > > > Indeed. Thanks for reminding me about mailcap/metamail - I used them in > > And thanks for mentioning the real name of that mechanism! Happy memories! ;-) [...] > > import mailcap > > I guess I sh

Re: Determining an operating system's default browser

2006-02-12 Thread Jorgen Grahn
On 11 Feb 2006 11:44:29 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > Jorgen Grahn wrote: ... >> On my machines, there is One Correct Way of doing these things, and that's >> to look in the MIME support/configuration files (~/.mailcap, and so on), >> first for the user, then system-wide. Somethin

Re: Determining an operating system's default browser

2006-02-11 Thread Paul Boddie
Jorgen Grahn wrote: > [desktop module] > Note that those do not, of course, work on all Unices. Correct: they work only for the stated desktop environments. > On my machines, there is One Correct Way of doing these things, and that's > to look in the MIME support/configuration files (~/.mailcap

Re: Determining an operating system's default browser

2006-02-11 Thread Jorgen Grahn
On 10 Feb 2006 03:51:01 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote: > John McMonagle wrote: >> On Thu, 2006-02-09 at 17:53 -0600, Larry Bates wrote: >> > You don't have to determine it. Just os.startfile('page1.html') >> > and let the OS figure it out. >> >> Works great for Windows - not availab

Re: Determining an operating system's default browser

2006-02-10 Thread Sion Arrowsmith
John McMonagle <[EMAIL PROTECTED]> wrote: >Is there a python module which can determine an operating system's >default web browser application. http://docs.python.org/lib/module-webbrowser.html -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings to

Re: Determining an operating system's default browser

2006-02-10 Thread Paul Boddie
John McMonagle wrote: > On Thu, 2006-02-09 at 17:53 -0600, Larry Bates wrote: > > You don't have to determine it. Just os.startfile('page1.html') > > and let the OS figure it out. > > Works great for Windows - not available on Unix though. Take a look at the desktop module for similar functionali

Re: Determining an operating system's default browser

2006-02-10 Thread Fuzzyman
John McMonagle wrote: > Is there a python module which can determine an operating system's > default web browser application. > > I would like to use it in the following context: I have a GUI > application where all the documentation is written as html pages. I > wish to have these html help pag

Re: Determining an operating system's default browser

2006-02-10 Thread Juho Schultz
John McMonagle wrote: > Is there a python module which can determine an operating system's > default web browser application. > > I would like to use it in the following context: I have a GUI > application where all the documentation is written as html pages. I > wish to have these html help pag

Re: Determining an operating system's default browser

2006-02-09 Thread [EMAIL PROTECTED]
Larry Bates wrote: > You don't have to determine it. Just os.startfile('page1.html') > and let the OS figure it out. Note that this only works on Windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining an operating system's default browser

2006-02-09 Thread John McMonagle
On Thu, 2006-02-09 at 17:53 -0600, Larry Bates wrote: > You don't have to determine it. Just os.startfile('page1.html') > and let the OS figure it out. Works great for Windows - not available on Unix though. -- This message has been scanned for viruses and dangerous content by MailScanner, an

Re: Determining an operating system's default browser

2006-02-09 Thread Larry Bates
You don't have to determine it. Just os.startfile('page1.html') and let the OS figure it out. -Larry Bates John McMonagle wrote: > Is there a python module which can determine an operating system's > default web browser application. > > I would like to use it in the following context: I have

Determining an operating system's default browser

2006-02-09 Thread John McMonagle
Is there a python module which can determine an operating system's default web browser application. I would like to use it in the following context: I have a GUI application where all the documentation is written as html pages. I wish to have these html help pages open in the default browser whe