I'm coding a very simple url opener that gets the url in the terminal window (using input
) and opens it with webbrowser.open
.
The problem is that when nothing is put into the input (it's run webbrowser.open("")
), a file explorer window appears instead of my web browser, and when I put something in the input, for example, http://www.google.com (it's run webbrowser.open("http://www.google.com")
) it correctly opens google chrome. What's happening?
I'm running python 3.2.2 on windows 8, AMD. Thanks in any advance.