Fixed an issue in the debugger backends for Python and Python3 that caused files in exceptions been converted to all lowercase on case insensitive filesystems.

Fri, 10 Feb 2012 19:33:45 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 10 Feb 2012 19:33:45 +0100
changeset 1607
67c7ffaed401
parent 1605
899cb1241de5
child 1608
b6390d242303

Fixed an issue in the debugger backends for Python and Python3 that caused files in exceptions been converted to all lowercase on case insensitive filesystems.
(transplanted from 446515c955f68bfffac7f17c30763debb1564197)

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Tue Feb 07 19:27:53 2012 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Fri Feb 10 19:33:45 2012 +0100
@@ -1124,9 +1124,9 @@
         # Search sys.path.
         for p in sys.path:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
 
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):
@@ -1136,9 +1136,9 @@
         # Search the additional directory cache
         for p in self.dircache:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
             
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 return afn
                 
--- a/DebugClients/Python3/DebugClientBase.py	Tue Feb 07 19:27:53 2012 +0100
+++ b/DebugClients/Python3/DebugClientBase.py	Fri Feb 10 19:33:45 2012 +0100
@@ -1124,9 +1124,9 @@
         # Search sys.path.
         for p in sys.path:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
 
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):
@@ -1136,9 +1136,9 @@
         # Search the additional directory cache
         for p in self.dircache:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
             
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 return afn
         

eric ide

mercurial