The url should be either regular exp string or use / rather than back slash and should be urlencoded see urlparse. Personally i would build the local path relative to the python files own location. os.path.split(file)[0] might be a good starting point.
Gadget/Steve
···
Those were some awesome ideas. I really need to get hackin’ now. That webbrowser.open("file:://’) was a thing I didn’t even think of. Thanks.
Uhm, is this correct? webbrowser.open(“file://C:\Users\myfile.html”) Is my path format correct?
There's been some of bug activity on the webbrowswer() by the way.
http://bugs.python.org/issue8232
Also, if I'm not mistaken, often browsers have a way to hide title bars,
menus, address-bars, borders, etc which could make it appear like a
messagebox with hyperlinks in it.
Oh, when I first mentioned using a browser, I was hinting at a "desktop
shortcut or batch file" that merely ran an installed browser executable
showing a local html. This way you could even avoided Python version
mismatches as well.
Something like
"C:\Program Files\Google\Chrome\Application\chrome.exe" C:\mymessagebox.html
http://peter.sh/experiments/chromium-command-line-switches/
OR
http://stackoverflow.com/questions/26147233/open-chrome-or-firefox-without-tabs-and-other-menu-items-and-with-a-set-screen-p