DebugClients/Python/DebugClientBase.py

changeset 5242
26630d91f4cf
parent 5239
27f56dc07b5b
child 5272
5684dd6667e6
--- a/DebugClients/Python/DebugClientBase.py	Sat Oct 15 20:36:37 2016 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Sat Oct 15 22:50:03 2016 +0200
@@ -1261,6 +1261,9 @@
         @return the converted filename (string)
         """
         if os.path.isabs(fn):
+            if sys.version_info[0] == 2:
+                fn = fn.decode(sys.getfilesystemencoding())
+            
             return fn
 
         # Check the cache.
@@ -1273,6 +1276,9 @@
             nafn = os.path.normcase(afn)
 
             if os.path.exists(nafn):
+                if sys.version_info[0] == 2:
+                    afn = afn.decode(sys.getfilesystemencoding())
+                
                 self._fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):

eric ide

mercurial