[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE PyConsole.py,1.6,1.7

Just van Rossum jvr@users.sourceforge.net
Mon, 06 Aug 2001 04:12:20 -0700


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv1906

Modified Files:
	PyConsole.py 
Log Message:
Show the MacPython IDE version in the interactive banner.

Index: PyConsole.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyConsole.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PyConsole.py	2001/06/19 21:37:32	1.6
--- PyConsole.py	2001/08/06 11:12:18	1.7
***************
*** 48,53 ****
  	
  	def open(self):
  		W.EditText.open(self)
! 		self.write('Python ' + sys.version + '\nType "copyright", "credits" or "license" for more information.\n')
  		self.write(sys.ps1)
  		self.flush()
--- 48,56 ----
  	
  	def open(self):
+ 		import __main__
  		W.EditText.open(self)
! 		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()