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: trace.py on win32 has problems with lowercase drive names
Type: Stage:
Components: Demos and Tools Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: agroszer, georg.brandl
Priority: normal Keywords: patch

Created on 2006-08-07 15:22 by agroszer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg50846 - (view) Author: Adam Groszer (agroszer) Date: 2006-08-07 15:22
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
msg50847 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-08-14 21:55
Logged In: YES 
user_id=849994

Thanks for the patch, applied in rev. 51289.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43791
2006-08-07 15:22:30agroszercreate