summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/BuildApplet.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-26 20:35:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-26 20:35:47 (GMT)
commitdf976caa341221e570dc15a44a5701ed175ad114 (patch)
treef8fa79224dbbd25641243d15476950770b09bab9 /Mac/scripts/BuildApplet.py
parentdb5ab80411b8da0773653badff42a4939dbe7b61 (diff)
downloadcpython-df976caa341221e570dc15a44a5701ed175ad114.zip
cpython-df976caa341221e570dc15a44a5701ed175ad114.tar.gz
cpython-df976caa341221e570dc15a44a5701ed175ad114.tar.bz2
Use new file dialogs.
Diffstat (limited to 'Mac/scripts/BuildApplet.py')
-rw-r--r--Mac/scripts/BuildApplet.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py
index 3134650..52a7d0f 100644
--- a/Mac/scripts/BuildApplet.py
+++ b/Mac/scripts/BuildApplet.py
@@ -11,7 +11,6 @@ import sys
sys.stdout = sys.stderr
import os
-import macfs
import MacOS
import EasyDialogs
import buildtools
@@ -36,7 +35,7 @@ def buildapplet():
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 @@ def buildapplet():
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: