Issue 1536071: trace.py on win32 has problems with lowercase drive names (original) (raw)
Issue1536071
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) * ![]() |
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:19 | admin | set | github: 43791 |
2006-08-07 15:22:30 | agroszer | create |