diff Mac/scripts/BuildApplet.py @ 27404:6eb5e1a09b95 legacy-trunk

Use new file dialogs.
author Jack Jansen <jack.jansen@cwi.nl>
date Sun, 26 Jan 2003 20:35:47 +0000
parents 412e66e3530e
children 823d5b1f32e1
line wrap: on
line diff
--- a/Mac/scripts/BuildApplet.py	Sun Jan 26 20:33:46 2003 +0000
+++ b/Mac/scripts/BuildApplet.py	Sun Jan 26 20:35:47 2003 +0000
@@ -11,7 +11,6 @@
 sys.stdout = sys.stderr
 
 import os
-import macfs
 import MacOS
 import EasyDialogs
 import buildtools
@@ -36,7 +35,7 @@
 	
 	if not sys.argv[1:]:
 		filename = EasyDialogs.AskFileForOpen(message='Select Python source or applet:', 
-			fileTypes=('TEXT', 'APPL'))
+			typeList=('TEXT', 'APPL'))
 		if not filename:
 			return
 		tp, tf = os.path.split(filename)
@@ -86,7 +85,7 @@
 			verbose = 'default'
 		# Loop over all files to be processed
 		for filename in args:
-			cr, tp = MacOS.GetCreatorAndType(macfs.FSRef(filename))
+			cr, tp = MacOS.GetCreatorAndType(filename)
 			if tp == 'APPL':
 				buildtools.update(template, filename, dstfilename)
 			else: