Terry J. Reedy <tjre...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue47086>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to