| | |
webbrowser.open() opens absolute path +URL instead of URL
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
Python Syntax (Toggle Plain Text)
url='http://www.google.com' webbrowser.open_new_tab(url)
This should open the google.com webpage, but instead it attempts to open :
"file:///u/guest/python/%22http%3A//www.google.com%22
guest is my username, and /u/guest/python is where I execute the script from .
Could you please tell me why this is happening ?
Thanks
![]() |
Similar Threads
- Tutorial: Multimedia: introducing the webbrowser module (Python)
Other Threads in the Python Forum
- Previous Thread: send email in python
- Next Thread: Combining two python programs together...HELP!!!
| Thread Tools | Search this Thread |
address anydbm app beginner changecolor cipher class conversion coordinates corners curves definedlines development dictionary dynamic events examples excel feet file float format ftp function generator getvalue gui handling homework images import input ip java keycontrol line linux list lists loan loop maintain matching maze millimeter mouse mysqldb number numbers output parsing path permissions port prime programming projects py2exe pygame pymailer python queue random rational raw_input recursion recursive scrolledtext searchingfile shebang slicenotation split string strings table terminal text thread threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 valueerror variable variables vigenere web windows wx.wizard wxpython xlwt





