From 874f87b546ca1001dfb93a499df43973e846cf9f Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sat, 30 Jan 1999 22:31:26 +0000 Subject: [PATCH] set 'preload' attribute for __main__ PYC resource -- jvr --- Mac/Lib/buildtools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py index d2ae0fada4a..3dcb6ae8d41 100644 --- a/Mac/Lib/buildtools.py +++ b/Mac/Lib/buildtools.py @@ -204,6 +204,9 @@ def process_common(template, progress, code, rsrcname, destname, is_update, copy id = Res.Unique1ID(RESTYPE) res = Res.Resource(data) res.AddResource(RESTYPE, id, RESNAME) + attrs = res.GetResAttrs() + attrs = attrs | 0x04 # set preload + res.SetResAttrs(attrs) res.WriteResource() res.ReleaseResource()