[Python-Dev] patching webbrowser.py for OS X

Alex Martelli aleaxit at yahoo.com
Mon Jan 12 14:59:15 EST 2004


On Jan 12, 2004, at 8:45 PM, Brendan O'Connor wrote:

> Hi wonderful python folks,
>
> I was trying to use the webbrowser module with OS X's preinstalled
> python; I'm not very familiar with OS X, but I just patched 
> webbrowser.py
> to use the very generic "open" command, which works for the simple
> webbrowser.open(url).
>
> I've heard that Fink or another port would be more complete; on the 
> other
> hand, I'm using computers where I can't install software myself, so 
> this
> is useful for me.
>
> Any thoughts or issues?

As a brand-new user of Mac OS X, "open" appears to be the right 
solution to me, picking up whatever settings one may have made for a 
different browser than Safari, not requiring fink, etc, etc.  However, 
we should probably double-check on pythonmac-sig, where the REAL Mac 
Pythonistas hang out...


Alex




More information about the Python-Dev mailing list