set 'preload' attribute for __main__ PYC resource -- jvr

This commit is contained in:
Just van Rossum 1999-01-30 22:31:26 +00:00
parent 1cea8047d8
commit 874f87b546
1 changed files with 3 additions and 0 deletions

View File

@ -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()