DebugClients/Python/DebugBase.py

changeset 5644
509d3c9666b0
parent 5616
adcffadf4962
child 5658
e5f6fe5855fd
--- a/DebugClients/Python/DebugBase.py	Mon Mar 20 19:31:22 2017 +0100
+++ b/DebugClients/Python/DebugBase.py	Mon Mar 20 22:24:44 2017 +0100
@@ -562,16 +562,13 @@
         try:
             return self._fnCache[fn]
         except KeyError:
-            if fn and fn != frame.f_code.co_filename:
-                absFilename = os.path.abspath(fn)
-                if absFilename.endswith(('.pyc', '.pyo')):
-                    fixedName = absFilename[:-1]
-                    if not os.path.exists(fixedName):
-                        fixedName = absFilename
-                else:
+            absFilename = os.path.abspath(fn)
+            if absFilename.endswith(('.pyc', '.pyo')):
+                fixedName = absFilename[:-1]
+                if not os.path.exists(fixedName):
                     fixedName = absFilename
             else:
-                fixedName = frame.f_code.co_filename
+                fixedName = absFilename
             # update cache
             self._fnCache[fn] = fixedName
             return fixedName

eric ide

mercurial