]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set the signature for the IDE "by hand", the bundle is already included in the
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 27 Feb 1999 15:24:02 +0000 (15:24 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 27 Feb 1999 15:24:02 +0000 (15:24 +0000)
PythonEngine applet template.

Mac/Tools/IDE/BuildIDE.py

index 82a06367e22f4601a3bc882d2f4d59fa68cba26a..456e5034ce7a123479ace5dde962eca852e8886e 100644 (file)
@@ -7,6 +7,8 @@ import os
 import buildtools
 import Res
 import py_resource
+import macfs
+import MACFS
 
 buildtools.DEBUG=1
 
@@ -19,6 +21,17 @@ dstfilename = os.path.join(sys.exec_prefix, "Python IDE")
 
 buildtools.process(template, mainfilename, dstfilename, 1)
 
+# Override the owner: IDE gets its bundle stuff from the applet
+# template and only needs to set the file creator.
+dest_fss = macfs.FSSpec(dstfilename)
+dest_finfo = dest_fss.GetFInfo()
+dest_finfo.Creator = ownertype
+dest_finfo.Type = 'APPL'
+dest_finfo.Flags = dest_finfo.Flags | MACFS.kHasBundle
+dest_finfo.Flags = dest_finfo.Flags & ~MACFS.kHasBeenInited
+dest_fss.SetFInfo(dest_finfo)
+
+
 targetref = Res.OpenResFile(dstfilename)
 Res.UseResFile(targetref)