diff options
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: |