webbrowser fragment identifier

scottbvfx scotballard at gmail.com
Thu Sep 18 20:53:22 EDT 2008


Hi,

I'm trying to launch a web browser along with an html file with a
fragment identifier in its path. I'm using the webbrowser module for
this.
ie. webbrowser.open('file:///C:/myfile.html#SomeEntryInTheHTML')

for some reason it is truncating the path to 'file:///C:/myfile.html'.

Does anyone know a way of getting the fragment identifier in there
(with webbrowser module or any other)?

Thanks,
-Scott



More information about the Python-list mailing list