Issue 7653: Fix description of the way the PythonPath Windows registry key works (original) (raw)

Issue7653

Created on 2010-01-07 20:40 by BoarGules, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue7653.diff brian.curtin,2010-01-07 21:23 patch against r77358
Messages (4)
msg97371 - (view) Author: Paul Keating (BoarGules) Date: 2010-01-07 20:40
The 2.6.4 docs (at http://docs.python.org/using/windows.html) do not give enough detail for an ordinary user to work out how the registry key HKLM\SOFTWARE\Python\PythonCore\version\PythonPath actually works. It says: Modifying the module search path can also be done through the Windows registry: Edit HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\version\PythonPath. It should say: Modifying the module search path can also be done through the Windows registry. To add a folder to the module search path, create a subkey under HKLM\SOFTWARE\Python\PythonCore\version\PythonPath. The subkey name is not important (but might, say, identify the package being added to the search path). Put the name of the folder you want searched in the default string value of the key you have created. Specify multiple folders as a semicolon-delimited list. If you create more than one subkey, all will be used, in alphabetical order of subkey name. If a folder appears in more than one subkey then it will appear only once in sys.path, in the position corresponding to the first mention. Do not amend the list of folders given in the default value at the PythonPath key level. Installers create this value but it is a holdover from earlier versions of Python and amending it has no effect.
msg97374 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-01-07 21:23
It seems a bit wordy. I propose an alternate wording in the attached patch.
msg97381 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-01-07 21:48
Thanks, applied your patch in r77360.
msg97393 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-01-08 02:51
If, as the OP indicates, the value of the key itself is ignored, this should be mentioned in the doc, especially if it normally has an apparently valid value.
History
Date User Action Args
2022-04-11 14:56:56 admin set github: 51902
2010-01-08 02:51:02 r.david.murray set nosy: + r.david.murraymessages: +
2010-01-07 21:48:57 georg.brandl set status: open -> closedresolution: fixedmessages: +
2010-01-07 21:23:28 brian.curtin set files: + issue7653.diffpriority: lowversions: + Python 3.1, Python 2.7, Python 3.2keywords: + patch, needs reviewnosy: + brian.curtinmessages: + stage: patch review
2010-01-07 20:40:26 BoarGules create