Archive
Posts Tagged ‘webbrowser’
The webbrowser module uses xdg-open
January 1, 2013
Leave a comment
With the webbrowser module you can open webpages in your browser. But how does it work?
Well, under Linux it uses xdg-open. I figured it out accidentally. Start the python shell and try this:
>>> import webbrowser
>>> webbrowser.open_new_tab('')
You will get the usage message of xdg-open :)
Categories: fun, python
webbrowser, xdg-open
