webbrowser.open() opens absolute path +URL instead of URL

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 1
Reputation: linuxabhinav is an unknown quantity at this point 
Solved Threads: 0
linuxabhinav linuxabhinav is offline Offline
Newbie Poster

webbrowser.open() opens absolute path +URL instead of URL

 
0
  #1
Jul 24th, 2008
  1. url='http://www.google.com'
  2. 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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC