[Patches] [ python-Patches-1232023 ] MS Windows - module search path fix

SourceForge.net noreply at sourceforge.net
Mon Jul 24 13:55:47 CEST 2006


Patches item #1232023, was opened at 2005-07-04 07:57
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1232023&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: K. Thananchayan (thanan)
Assigned to: Nobody/Anonymous (nobody)
Summary: MS Windows - module search path fix

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2006-07-24 13:55

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1232023&group_id=5470


More information about the Patches mailing list