From: Just van Rossum Date: Mon, 6 Aug 2001 11:12:18 +0000 (+0000) Subject: Show the MacPython IDE version in the interactive banner. X-Git-Tag: v2.2a3~801 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6e745fc49f1c8c3e143c1d84cbb8812835bfdec;p=python Show the MacPython IDE version in the interactive banner. --- diff --git a/Mac/Tools/IDE/PyConsole.py b/Mac/Tools/IDE/PyConsole.py index 4c3278544e..389834a8b0 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()