Tue, 21 Mar 2017 19:46:41 +0100
Merged with debugger changes done by Tobias.
--- a/DebugClients/Python/DebugBase.py Tue Mar 21 19:42:00 2017 +0100 +++ b/DebugClients/Python/DebugBase.py Tue Mar 21 19:46:41 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