diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-20 15:49:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-20 15:49:27 (GMT) |
commit | 77b5828cf0220e8f366daf16df987c101a383da1 (patch) | |
tree | 20e36e8120f07cd24e2de92b44183c17f269944e /Mac/mkapplet.py | |
parent | b2f6a7ec001ab378aba26a45edc2f688bb3a7dc4 (diff) | |
download | cpython-77b5828cf0220e8f366daf16df987c101a383da1.zip cpython-77b5828cf0220e8f366daf16df987c101a383da1.tar.gz cpython-77b5828cf0220e8f366daf16df987c101a383da1.tar.bz2 |
Always set type to APPL
Diffstat (limited to 'Mac/mkapplet.py')
-rw-r--r-- | Mac/mkapplet.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Mac/mkapplet.py b/Mac/mkapplet.py index b8591aa..a99effa 100644 --- a/Mac/mkapplet.py +++ b/Mac/mkapplet.py @@ -99,12 +99,11 @@ def process(template, filename): dest.close() tmpl.close() - # Copy the creator and type of the template to the destination - # unless it already has one - + # Copy the creator of the template to the destination + # unless it already has one. Set type to APPL tctor, ttype = MacOS.GetCreatorAndType(template) ctor, type = MacOS.GetCreatorAndType(destname) - if type in undefs: type = ttype + if type in undefs: type = 'APPL' if ctor in undefs: ctor = tctor MacOS.SetCreatorAndType(destname, ctor, type) |