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

Chris Angelico rosuav at gmail.com
Mon Feb 25 07:37:25 CET 2013


On Mon, Feb 25, 2013 at 5:26 PM, llanitedave <llanitedave at veawb.coop> wrote:
> On the other hand, it *is* a bit frustrating that Linux recognizes an html-style relative path, while Windows insists on the entire absolute path.  Maybe we can call it a Windows bug, but a workaround would be nice to have.

That is, unfortunately, an all-too-common platform difference. But I'd
say that you do have that workaround:

> However, combined with os.path.abspath(), it's not a huge issue -- once we understand the approach.

If that works reliably on all platforms, I'd say that that's exactly
the nice-to-have that you describe.

ChrisA



More information about the Python-list mailing list