From cba861e5e3e6fde8e3e9d17cf1a8f2a3e0f7b65a Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 25 Feb 2003 23:02:03 +0000 Subject: 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. --- Lib/plat-mac/buildtools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Lib/plat-mac/buildtools.py') diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 470f016981..56f23a47d1 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) -- cgit v1.2.1