Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77b5828

Browse files
committed
Always set type to APPL
1 parent b2f6a7e commit 77b5828

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Mac/mkapplet.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ def process(template, filename):
9999
dest.close()
100100
tmpl.close()
101101

102-
# Copy the creator and type of the template to the destination
103-
# unless it already has one
104-
102+
# Copy the creator of the template to the destination
103+
# unless it already has one. Set type to APPL
105104
tctor, ttype = MacOS.GetCreatorAndType(template)
106105
ctor, type = MacOS.GetCreatorAndType(destname)
107-
if type in undefs: type = ttype
106+
if type in undefs: type = 'APPL'
108107
if ctor in undefs: ctor = tctor
109108
MacOS.SetCreatorAndType(destname, ctor, type)
110109

0 commit comments

Comments
 (0)