diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-27 15:24:02 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-02-27 15:24:02 (GMT) |
commit | 24f7b231bbcbf16b7c0fe30c87f324bf5c040b5c (patch) | |
tree | 655294f3d494078a1b1e1ab9d0996c539d6e28a2 /Mac/Tools | |
parent | 1e4cc33a55d51d34667350ee3aa1017cf8896c3e (diff) | |
download | cpython-24f7b231bbcbf16b7c0fe30c87f324bf5c040b5c.zip cpython-24f7b231bbcbf16b7c0fe30c87f324bf5c040b5c.tar.gz cpython-24f7b231bbcbf16b7c0fe30c87f324bf5c040b5c.tar.bz2 |
Set the signature for the IDE "by hand", the bundle is already included in the
PythonEngine applet template.
Diffstat (limited to 'Mac/Tools')
-rw-r--r-- | Mac/Tools/IDE/BuildIDE.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/BuildIDE.py b/Mac/Tools/IDE/BuildIDE.py index 82a0636..456e503 100644 --- a/Mac/Tools/IDE/BuildIDE.py +++ b/Mac/Tools/IDE/BuildIDE.py @@ -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) |