summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/bundlebuilder.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-17 16:47:12 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-17 16:47:12 (GMT)
commit946c19445c902d68ccd75452b97a8098e9b212e5 (patch)
treecbde05778e214aceabafc1453b704a4d58a58aaf /Lib/plat-mac/bundlebuilder.py
parent3d3b74677a440b00d94b6b4e71e7f2f97800c427 (diff)
downloadcpython-946c19445c902d68ccd75452b97a8098e9b212e5.zip
cpython-946c19445c902d68ccd75452b97a8098e9b212e5.tar.gz
cpython-946c19445c902d68ccd75452b97a8098e9b212e5.tar.bz2
When installing resource files whose name ends in .rsrc use the
"copy anything to a data fork based resource file" trick of macresource. Fixes #688007.
Diffstat (limited to 'Lib/plat-mac/bundlebuilder.py')
-rwxr-xr-xLib/plat-mac/bundlebuilder.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py
index d8c5557..9d50f91 100755
--- a/Lib/plat-mac/bundlebuilder.py
+++ b/Lib/plat-mac/bundlebuilder.py
@@ -36,6 +36,7 @@ from copy import deepcopy
import getopt
from plistlib import Plist
from types import FunctionType as function
+import macresource
class BundleBuilderError(Exception): pass
@@ -188,6 +189,8 @@ class BundleBuilder(Defaults):
dst = pathjoin(self.bundlepath, dst)
if self.symlink:
symlink(src, dst, mkdirs=1)
+ elif os.path.splitext(src)[1] == '.rsrc':
+ macresource.install(src, dst, mkdirs=1)
else:
copy(src, dst, mkdirs=1)