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.

classification
Title: MS Windows - module search path fix
Type: Stage:
Components: Windows Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, thanan
Priority: normal Keywords: patch

Created on 2005-07-04 05:57 by thanan, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
module_search_pathfix.patch thanan, 2005-07-04 05:57 Initial module search path fix - Windows
Messages (2)
msg48567 - (view) Author: K. Thananchayan (thanan) Date: 2005-07-04 05:57
Module search path initialization code for Windows (PC)
contains empty component(s) if Python home is
determined and
registry key "Software/Python/PythonCore/<Python
Version>/PythonPath" of HKLM or HKCU exists but does
not any subkeys as usually the case. This(ese) empyt
componentes
transformed into current directory later causing to
load modules in the current directory in preference to
modules in the installation.

This patch removes this(ese) empty component(s) from
initial module search path.
msg48568 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-07-24 11:55
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as r50796 (for 2.5)
I won't backport this to 2.4.x, as this change in behaviour
might break existing installations.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42158
2005-07-04 05:57:28thanancreate