python-doc
python-doc copied to clipboard
Offline lookup not working
Hi @vinayak-mehta, I noticed the default lookup for offline copy wasn't opening a tab for me. The command would be:
python-doc
# or
python-doc -m os
My setup:
- macOS Catalina 10.15.7
- Firefox 81.0.1
- python 3.8.5
It seems webbrowser.open doesn't work with non-prefixed filesystem paths like /Users/name/filename, but works with file:///Users/name/filename.
I don't even know if this is an issue for other systems. But, I submitted a quick fix (see https://github.com/vinayak-mehta/python-doc/pull/7) and it works for me.