[Python-checkins] python/dist/src/Mac/Tools/IDE PyEdit.py, 1.45, 1.46

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Thu Jun 3 17:27:18 EDT 2004


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6614/Mac/Tools/IDE

Modified Files:
	PyEdit.py 
Log Message:
- Fix for #862941: "run with commandline python" crashed. Fixed.
- Prefer to use pythonw (if it exists) for "run with commandline python".


Index: PyEdit.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PyEdit.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** PyEdit.py	12 Feb 2004 17:35:13 -0000	1.45
--- PyEdit.py	3 Jun 2004 21:27:15 -0000	1.46
***************
*** 541,545 ****
  	def _run_with_cl_interpreter(self):
  		import Terminal
! 		interp_path = os.path.join(sys.exec_prefix, "bin", "python")
  		file_path = self.path
  		if not os.path.exists(interp_path):
--- 541,548 ----
  	def _run_with_cl_interpreter(self):
  		import Terminal
! 		interp_path = os.path.join(sys.exec_prefix, 
! 			"Resources", "Python.app", "Contents", "MacOS", "Python")
! 		if not os.path.exists(interp_path):
! 			interp_path = os.path.join(sys.exec_prefix, "bin", "python")
  		file_path = self.path
  		if not os.path.exists(interp_path):
***************
*** 548,552 ****
  		cmd = '"%s" "%s" ; exit' % (interp_path, file_path)
  		t = Terminal.Terminal()
! 		t.do_script(with_command=cmd)
  	
  	def runselection(self):
--- 551,555 ----
  		cmd = '"%s" "%s" ; exit' % (interp_path, file_path)
  		t = Terminal.Terminal()
! 		t.do_script(cmd)
  	
  	def runselection(self):




More information about the Python-checkins mailing list