[Python-checkins] python/dist/src/Mac/Tools/macfreeze macgen_bin.py,1.10,1.11

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 26 Jan 2003 13:36:36 -0800


Update of /cvsroot/python/python/dist/src/Mac/Tools/macfreeze
In directory sc8-pr-cvs1:/tmp/cvs-serv24167

Modified Files:
	macgen_bin.py 
Log Message:
Use new file dialogs.

Index: macgen_bin.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/macfreeze/macgen_bin.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** macgen_bin.py	13 Dec 2001 17:11:21 -0000	1.10
--- macgen_bin.py	26 Jan 2003 21:36:34 -0000	1.11
***************
*** 206,213 ****
  	corepath = os.path.join(extpath, corename)
  	if not os.path.exists(corepath):
! 		fss, ok = macfs.PromptGetFile("Please locate PythonCore:", "shlb")
! 		if not ok:
  			raise KeyboardInterrupt, "cancelled"
- 		corepath = fss.as_pathname()
  	return resolvealiasfile(corepath)
  
--- 206,213 ----
  	corepath = os.path.join(extpath, corename)
  	if not os.path.exists(corepath):
! 		corepath = EasyDialogs.AskFileForOpen(message="Please locate PythonCore:", 
! 			typeList=("shlb",))
! 		if not corepath:
  			raise KeyboardInterrupt, "cancelled"
  	return resolvealiasfile(corepath)