[issue47086] Include HTML docs with Windows installer instead of CHM

Terry J. Reedy report at bugs.python.org
Tue Mar 22 21:54:33 EDT 2022


Terry J. Reedy <tjreedy at udel.edu> added the comment:

In the IDLE Help menu, 'Python Docs', default hotkey 'F1', invokes '<<python-docs>>', which is handled by EditorWindow.help_docs.  For Windows, line 599, is 'os.startfile(self.help_url)'.  (Otherwise, webbrowser is used.)  On Windows, help_url is os.path.join(sys.base_prefix, 'Doc','Python%s.chm' % _sphinx_version())
if the result is valid, else python.org/...(but '3.1' because only 3 chars are grabbed).

How do I use winreg to get the file name from
"HKCU\Software\Python\PythonCore\{sys.winver}\Help\Main Python Documentation"?
The winreg doc assumes some knowledge of registry terminology that I do not have and has no examples, so my attempts failed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47086>
_______________________________________


More information about the Python-bugs-list mailing list