WebBrowser Library Python 2.7
Question: Python Webbrowser library has the new varibale for its open where, by default,
it will open up a file in the same browser window. Is there a way to open up
the same file in the same TAB. Like whatever the current page that is open on
the browser, redirect that page the specified url.

current code is:

    
    
    import webbrowser
    url = "http://www.google.com"
    webbrowser.open(url)
    

but this opens in a new tab but I want it to open in my current tab. Thanks in
advance.


Answer: It should be as easy as adding new=0 like this: `webbrowser.open(url, new=0)`

> Display url using the default browser. If new is 0, the url is opened in the
> same browser window if possible.

according to: <https://docs.python.org/2/library/webbrowser.html>

