diff options
author | Just van Rossum <just@lettererror.com> | 1999-01-30 22:31:26 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-01-30 22:31:26 (GMT) |
commit | 874f87b546ca1001dfb93a499df43973e846cf9f (patch) | |
tree | 3a420a0deff465f21f5cf0d320ae037b5d083daf /Mac/Lib | |
parent | 1cea8047d8c758413a776dc6fa8c781b0ae218a7 (diff) | |
download | cpython-874f87b546ca1001dfb93a499df43973e846cf9f.zip cpython-874f87b546ca1001dfb93a499df43973e846cf9f.tar.gz cpython-874f87b546ca1001dfb93a499df43973e846cf9f.tar.bz2 |
set 'preload' attribute for __main__ PYC resource -- jvr
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/buildtools.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py index d2ae0fa..3dcb6ae 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() |