mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
When in MacPython-OSX use bundlebuilder to create .app bundles.
This commit is contained in:
parent
53b341ff67
commit
f59c6fa125
4 changed files with 52 additions and 180 deletions
|
|
@ -88,6 +88,8 @@ def pack(x, forcetype = None):
|
|||
return x
|
||||
if isinstance(x, FSSType):
|
||||
return AE.AECreateDesc('fss ', x.data)
|
||||
if isinstance(x, FSRefType):
|
||||
return AE.AECreateDesc('fsrf', x.data)
|
||||
if isinstance(x, AliasType):
|
||||
return AE.AECreateDesc('alis', x.data)
|
||||
if isinstance(x, IntType):
|
||||
|
|
@ -166,6 +168,8 @@ def unpack(desc, formodulename=""):
|
|||
return struct.unpack('d', data)[0]
|
||||
if t == typeFSS:
|
||||
return Carbon.File.FSSpec(rawdata=desc.data)
|
||||
if t == typeFSRef:
|
||||
return Carbon.File.FSRef(rawdata=desc.data)
|
||||
if t == typeInsertionLoc:
|
||||
record = desc.AECoerceDesc('reco')
|
||||
return mkinsertionloc(unpack(record, formodulename))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue