From e6b49025c174bf283c12f5dccf992a11eedec3f0 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sun, 24 Nov 2002 01:23:45 +0000 Subject: get creator code from plist if available, instead of overriding with default --- Mac/Lib/bundlebuilder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mac/Lib/bundlebuilder.py b/Mac/Lib/bundlebuilder.py index 70f3da8..70b1bd3 100755 --- a/Mac/Lib/bundlebuilder.py +++ b/Mac/Lib/bundlebuilder.py @@ -86,7 +86,7 @@ class BundleBuilder(Defaults): # The type of the bundle. type = "APPL" # The creator code of the bundle. - creator = "????" + creator = None # List of files that have to be copied to /Contents/Resources. resources = [] @@ -121,6 +121,11 @@ class BundleBuilder(Defaults): plist = self.plist plist.CFBundleName = self.name plist.CFBundlePackageType = self.type + if self.creator is None: + if hasattr(plist, "CFBundleSignature"): + self.creator = plist.CFBundleSignature + else: + self.creator = "????" plist.CFBundleSignature = self.creator def build(self): -- cgit v0.12