summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-08-06 11:12:18 (GMT)
committerJust van Rossum <just@letterror.com>2001-08-06 11:12:18 (GMT)
commite6e745fc49f1c8c3e143c1d84cbb8812835bfdec (patch)
treeefe3e353e55719de493d5f073c2d2be7aa02af0a /Mac/Tools
parent1fbad002d7df55ec5fa81b88a3c646f2ceff1aea (diff)
downloadcpython-e6e745fc49f1c8c3e143c1d84cbb8812835bfdec.zip
cpython-e6e745fc49f1c8c3e143c1d84cbb8812835bfdec.tar.gz
cpython-e6e745fc49f1c8c3e143c1d84cbb8812835bfdec.tar.bz2
Show the MacPython IDE version in the interactive banner.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PyConsole.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py
index 4c32785..389834a 100644
--- a/Mac/Tools/IDE/PyConsole.py
+++ b/Mac/Tools/IDE/PyConsole.py
@@ -47,8 +47,11 @@ class ConsoleTextWidget(W.EditText):
self._namespace = dict
def open(self):
+ import __main__
W.EditText.open(self)
- self.write('Python ' + sys.version + '\nType "copyright", "credits" or "license" for more information.\n')
+ self.write('Python %s\n' % sys.version)
+ self.write('Type "copyright", "credits" or "license" for more information.\n')
+ self.write('MacPython IDE %s\n' % __main__.__version__)
self.write(sys.ps1)
self.flush()