]> granicus.if.org Git - python/commitdiff
Enable argv emulation if required.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 23:30:27 +0000 (23:30 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 23:30:27 +0000 (23:30 +0000)
Fixed a bug for applets with their own plist files.

Lib/plat-mac/buildtools.py

index 89d4510335127439da4d30d691dd036d7b348cdc..c6430b0211588fee4df7efc4364e26332a4a8140 100644 (file)
@@ -303,10 +303,12 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update
        for o in others:
                builder.resources.append(o)
        if plistname:
-               import Plist
-               builder.plist = Plist.fromFile(plistname)
+               import plistlib
+               builder.plist = plistlib.Plist.fromFile(plistname)
        if icnsname:
                builder.iconfile = icnsname
+       if not raw:
+               builder.argv_emulation = 1
        builder.setup()
        builder.build()
        if progress: