[Patches] [ python-Patches-1536071 ] trace.py on win32 has problems with lowercase drive names

SourceForge.net noreply at sourceforge.net
Mon Aug 7 17:22:33 CEST 2006


Patches item #1536071, was opened at 2006-08-07 17:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1536071&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: Demos and tools
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Adam Groszer (agroszer)
Assigned to: Nobody/Anonymous (nobody)
Summary: trace.py on win32 has problems with lowercase drive names

Initial Comment:
The following patch should solve it:

--- svn-trace.py-46805 
+++ U:\Python24\Lib\trace.py 

@@ -179,8 +177,12 @@
     # looking in sys.path for the longest matching 
prefix.  We'll
     # assume that the rest is the package name.
 
+    path = os.path.normcase(path)
+    
     longest = ""
     for dir in sys.path:
+        dir = os.path.normcase(dir)
+        
         if path.startswith(dir) and path[len(dir)] == 
os.path.sep:
             if len(dir) > len(longest):
                 longest = dir

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

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


More information about the Patches mailing list