From: Just van Rossum Date: Sun, 24 Nov 2002 01:23:45 +0000 (+0000) Subject: get creator code from plist if available, instead of overriding with default X-Git-Tag: v2.3c1~3266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6b49025c174bf283c12f5dccf992a11eedec3f0;p=thirdparty%2FPython%2Fcpython.git get creator code from plist if available, instead of overriding with default --- diff --git a/Mac/Lib/bundlebuilder.py b/Mac/Lib/bundlebuilder.py index 70f3da868c27..70b1bd393065 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):