diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 20:35:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 20:35:47 (GMT) |
commit | df976caa341221e570dc15a44a5701ed175ad114 (patch) | |
tree | f8fa79224dbbd25641243d15476950770b09bab9 /Mac/scripts/BuildApplet.py | |
parent | db5ab80411b8da0773653badff42a4939dbe7b61 (diff) | |
download | cpython-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.py | 5 |
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: |