attaching someconfusing results in webbrowser.open on gnulinux

D.Hering vel.accel at gmail.com
Thu Nov 1 05:45:23 EDT 2007


krishnakant Mane wrote:
> hello all,
> I had mentioned previously that I can't open html files in python.
> I have my username as krishna and there is a documents folder.
> so when I give webbrowser.open("file:///home/krishna/documents/tut.html")
> on python prompt I get true as return value but web browser (firefox )
> opens with page not found.
> and the address bar shows the following address which indeed is wrong.
> file:///home/krishna/"file:///home/krishna/documents/tut.html"
> I can't understand what is happening.
> regards,
> Krishnakant.

I'm not familiar with the module, but maybe a comparison with this
cookbook example will help:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347810




More information about the Python-list mailing list