mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
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.
This commit is contained in:
parent
3d3b74677a
commit
946c19445c
2 changed files with 45 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue