webbrowser.open("./documentation/help.html")-- No Go in Windows

Chris Rebert clp2 at rebertia.com
Sun Feb 24 04:24:49 EST 2013


On Feb 24, 2013 1:21 AM, "llanitedave" <llanitedave at veawb.coop> wrote:
>
> I created an html help page for my Python 2.7.3 application and put it in
a documentation folder.  I used webbrowser.open() to fetch the page.
>
> On linux -- KDE specifically, the command opens the local file on my
default browser with no issues.  However, on Windows 7, it opens Internet
Explorer, which doesn't even search the local folder, but goes straight to
the web and does a Google search, returning nothing but useless noise.
>
> My default browser on Windows is Chrome, so my intention is getting
undermined right from the start.
>
> How do I get a local html file to open properly from Python in Windows?

Please provide the exact code snippet that you're using.

Cheers,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130224/af6dc7fd/attachment.html>


More information about the Python-list mailing list