diff Mac/scripts/BuildApplication.py @ 27343:412e66e3530e legacy-trunk

Getting rid of StandardGetFile
author Jack Jansen <jack.jansen@cwi.nl>
date Wed, 22 Jan 2003 14:03:12 +0000
parents 546ef318ba5d
children 097437634968
line wrap: on
line diff
--- a/Mac/scripts/BuildApplication.py	Wed Jan 22 13:29:00 2003 +0000
+++ b/Mac/scripts/BuildApplication.py	Wed Jan 22 14:03:12 2003 +0000
@@ -12,7 +12,6 @@
 
 import string
 import os
-import macfs
 import MacOS
 from Carbon import Res
 from Carbon import Dlg
@@ -54,10 +53,10 @@
 	# Ask for source text if not specified in sys.argv[1:]
 	
 	if not sys.argv[1:]:
-		srcfss, ok = macfs.PromptGetFile('Select Python source:', 'TEXT')
-		if not ok:
+		filename = EasyDialogs.AskFileForOpen(message='Select Python source:', 
+			fileTypes=('TEXT',))
+		if not filename:
 			return
-		filename = srcfss.as_pathname()
 	else:
 		if sys.argv[2:]:
 			raise buildtools.BuildError, "please select one file at a time"
@@ -73,10 +72,10 @@
 	else:
 		tf = tf + '.app'
 	
-	dstfss, ok = macfs.StandardPutFile('Save application as:', tf)
+	dstfilename = EasyDialogs.AskFileForSate(message='Save application as:', 
+		savedFileName=tf)
 	if not ok:
 		return
-	dstfilename = dstfss.as_pathname()
 	
 	macgen_bin.generate(filename, dstfilename, None, architecture, 1)