Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6e745f

Browse files
committed
Show the MacPython IDE version in the interactive banner.
1 parent 1fbad00 commit e6e745f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Mac/Tools/IDE/PyConsole.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ def set_namespace(self, dict):
4747
self._namespace = dict
4848

4949
def open(self):
50+
import __main__
5051
W.EditText.open(self)
51-
self.write('Python ' + sys.version + '\nType "copyright", "credits" or "license" for more information.\n')
52+
self.write('Python %s\n' % sys.version)
53+
self.write('Type "copyright", "credits" or "license" for more information.\n')
54+
self.write('MacPython IDE %s\n' % __main__.__version__)
5255
self.write(sys.ps1)
5356
self.flush()
5457

0 commit comments

Comments
 (0)