[issue21192] Idle: Print filename when running a file from editor

Adnan Umer report at bugs.python.org
Thu Apr 10 17:13:48 CEST 2014


Adnan Umer added the comment:

Method: runcode
Class: ModifiedInterpreter
Line: 752

Added
if code.co_filename[0] != '<':
            self.tkconsole.write('Executing ' + code.co_filename + '\n')

To print file path that is executed

----------
nosy: +Adnan.Umer
versions: +Python 3.4
Added file: http://bugs.python.org/file34783/PyShell.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21192>
_______________________________________


More information about the Python-bugs-list mailing list