mirror of https://github.com/python/cpython
set 'preload' attribute for __main__ PYC resource -- jvr
This commit is contained in:
parent
1cea8047d8
commit
874f87b546
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue