summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-11-24 01:23:45 (GMT)
committerJust van Rossum <just@letterror.com>2002-11-24 01:23:45 (GMT)
commite6b49025c174bf283c12f5dccf992a11eedec3f0 (patch)
tree2a176e82ca6e5d04d1d2d178f726ab2974bb18f2 /Mac/Lib
parentb8829b49b2928a9d8b388d4eef005e1a39ae7942 (diff)
downloadcpython-e6b49025c174bf283c12f5dccf992a11eedec3f0.zip
cpython-e6b49025c174bf283c12f5dccf992a11eedec3f0.tar.gz
cpython-e6b49025c174bf283c12f5dccf992a11eedec3f0.tar.bz2
get creator code from plist if available, instead of overriding with default
Diffstat (limited to 'Mac/Lib')
-rwxr-xr-xMac/Lib/bundlebuilder.py7
1 files changed, 6 insertions, 1 deletions
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 <bundle>/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):