Python webbrowser module sometimes fails to open url in Chrome -


i have chrome configured default browser, on mountain lion.

at end of python 2.7.4 program have following:

import webbrowser webbrowser.open('http://example.com') 

sometimes instead of opening tab as documentation suggests happen command focus google chrome, without opening url in new tab.

i'm not sure start debugging (there no errors on python side, @ least). i'd appreciate ideas start looking.

it looks there's chrome specific code in webbrowser 2.7 source code:

http://hg.python.org/cpython/file/2.7/lib/webbrowser.py

however when opened python file on computer, running earlier version of webbrowser.py source code, without chrome specific flags.

i updated source code on system latest code (from website) , it's running in chrome without problems.

it's been fixed in python 3.3, assured.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -