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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -