webbrowser fragment identifier

scottbvfx scotballard at gmail.com
Fri Sep 19 02:53:22 CEST 2008


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
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)?


More information about the Python-list mailing list