This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients mdk, ned.deily, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2022-03-23.01:54:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648000473.26.0.918393813267.issue47086@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-23 01:54:33terry.reedysetrecipients: + terry.reedy, paul.moore, tim.golden, ned.deily, zach.ware, steve.dower, mdk
2022-03-23 01:54:33terry.reedysetmessageid: <1648000473.26.0.918393813267.issue47086@roundup.psfhosted.org>
2022-03-23 01:54:33terry.reedylinkissue47086 messages
2022-03-23 01:54:33terry.reedycreate