You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below is used to launch the web browser. The environment variable DISPLAY does not exist. Rather than having to create it, it should only use this environment variable on X Window based systems.
Maybe it should instead use if os.name == 'posix' :
def launch(url):
"""Attempt to launch the given URL."""
if os.environ.get('DISPLAY') is not None:
webbrowser.open(url)
return
The text was updated successfully, but these errors were encountered:
The code below is used to launch the web browser. The environment variable DISPLAY does not exist. Rather than having to create it, it should only use this environment variable on X Window based systems.
Maybe it should instead use if os.name == 'posix' :
The text was updated successfully, but these errors were encountered: