Added an extra check for terminal webbrowsers.

This commit is contained in:
Michael Lazar
2015-05-14 22:05:53 -07:00
parent 1b6fed2ec3
commit 40987fa1e8

View File

@@ -78,6 +78,9 @@ def open_browser(url):
if user_browser in console_browsers: if user_browser in console_browsers:
display = False display = False
if webbrowser._tryorder and webbrowser._tryorder[0] in console_browsers:
display = False
if display: if display:
command = "import webbrowser; webbrowser.open_new_tab('%s')" % url command = "import webbrowser; webbrowser.open_new_tab('%s')" % url
args = [sys.executable, '-c', command] args = [sys.executable, '-c', command]