Patches item #1536071, was opened at 2006-08-07 15:22 Message generated for change (Comment added) made by gbrandl 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: Closed >Resolution: Fixed 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 ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-08-14 21:55 Message: Logged In: YES user_id=849994 Thanks for the patch, applied in rev. 51289. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1536071&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches