summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/buildtools.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-24 16:27:08 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-24 16:27:08 (GMT)
commit00cbf07ca714ec562bbf46be06c46f46381e3282 (patch)
tree18fca221f6e0b77346cb08ed8342ff0df27bec44 /Lib/plat-mac/buildtools.py
parentb671c0c418b103605e70b31f7e057b299c0962e1 (diff)
downloadcpython-00cbf07ca714ec562bbf46be06c46f46381e3282.zip
cpython-00cbf07ca714ec562bbf46be06c46f46381e3282.tar.gz
cpython-00cbf07ca714ec562bbf46be06c46f46381e3282.tar.bz2
Added a -c (--copyfile) option with argument src:dst which copies file src
into dst in the bundle. The Python API already had this functionality
Diffstat (limited to 'Lib/plat-mac/buildtools.py')
-rw-r--r--Lib/plat-mac/buildtools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index c6430b0..470f016 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -301,7 +301,10 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update
if rsrcname:
builder.resources.append(rsrcname)
for o in others:
- builder.resources.append(o)
+ if type(o) == str:
+ builder.resources.append(o)
+ else:
+ builder.files.append(o)
if plistname:
import plistlib
builder.plist = plistlib.Plist.fromFile(plistname)