]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Always set type to APPL
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 20 Feb 1995 15:49:27 +0000 (15:49 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 20 Feb 1995 15:49:27 +0000 (15:49 +0000)
Mac/mkapplet.py

index b8591aa5d1a70d3f1d51891e90e4e8e6d30a7ebb..a99effa0927ae199af85e8af8eca8d2097cdce35 100644 (file)
@@ -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)