diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-25 23:02:03 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-25 23:02:03 (GMT) |
commit | cba861e5e3e6fde8e3e9d17cf1a8f2a3e0f7b65a (patch) | |
tree | 64c98c800a77aa9d72d102444fc217d3a63b7e54 /Lib/plat-mac/buildtools.py | |
parent | ade626464d1feef2473f7af262e39e7689d8fbb2 (diff) | |
download | cpython-cba861e5e3e6fde8e3e9d17cf1a8f2a3e0f7b65a.zip cpython-cba861e5e3e6fde8e3e9d17cf1a8f2a3e0f7b65a.tar.gz cpython-cba861e5e3e6fde8e3e9d17cf1a8f2a3e0f7b65a.tar.bz2 |
If a resource file cannot be decoded because the directory is readonly
create a temporary file. This fixes #688011.
Got rid of the install() method in macresource, and replaced it with
a resource_filename() method which will optionally decode a given resourcefile
(which may be applesingle-encoded) and return the real resourcefile.
Use this new method in buildtools to copy the correct resource file to
the bundle. This fixes #688007.
Diffstat (limited to 'Lib/plat-mac/buildtools.py')
-rw-r--r-- | Lib/plat-mac/buildtools.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 470f016..56f23a4 100644 --- a/Lib/plat-mac/buildtools.py +++ b/Lib/plat-mac/buildtools.py @@ -299,7 +299,9 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update builder.builddir = destdir builder.name = shortname if rsrcname: - builder.resources.append(rsrcname) + realrsrcname = macresource.resource_pathname(rsrcname) + builder.files.append((realrsrcname, + os.path.join('Contents/Resources', os.path.basename(rsrcname)))) for o in others: if type(o) == str: builder.resources.append(o) |