?

Log in

No account? Create an account

November 10th, 2004 - Open Knowledge

Nov. 10th, 2004

03:45 pm

Python geekery: webbrowser.py on Mac OS X Collapse )

webbrowser.py allows you to open a url in an external browser (such as Firefox) from within a python script.  However, if you don't have the BROWSER environment variable set, you will get an error.

To get it to work you have to do the following:

% env | grep BROWSER
BROWSER=open
export BROWSER

Previous day (Calendar) Next day