diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-12 15:37:26 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-12 15:37:26 (GMT) |
commit | f59c6fa1256c4ddfcef95df8dd3f808c902fecc2 (patch) | |
tree | a6744dbadfffc07557d169a02d6e3088f33114b6 /Lib/plat-mac/aepack.py | |
parent | 53b341ff67f2b7d63db2783734a813354a5e3264 (diff) | |
download | cpython-f59c6fa1256c4ddfcef95df8dd3f808c902fecc2.zip cpython-f59c6fa1256c4ddfcef95df8dd3f808c902fecc2.tar.gz cpython-f59c6fa1256c4ddfcef95df8dd3f808c902fecc2.tar.bz2 |
When in MacPython-OSX use bundlebuilder to create .app bundles.
Diffstat (limited to 'Lib/plat-mac/aepack.py')
-rw-r--r-- | Lib/plat-mac/aepack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/plat-mac/aepack.py b/Lib/plat-mac/aepack.py index bfe539a..17a7e70 100644 --- a/Lib/plat-mac/aepack.py +++ b/Lib/plat-mac/aepack.py @@ -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)) |