From: Just van Rossum <just@lettererror.com> Date: Sat, 30 Jan 1999 22:31:26 +0000 (+0000) Subject: set 'preload' attribute for __main__ PYC resource -- jvr X-Git-Tag: v1.5.2b2~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=874f87b546ca1001dfb93a499df43973e846cf9f;p=python set 'preload' attribute for __main__ PYC resource -- jvr --- diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py index d2ae0fada4..3dcb6ae8d4 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()