From: Jack Jansen Date: Tue, 18 Feb 2003 23:30:27 +0000 (+0000) Subject: Enable argv emulation if required. X-Git-Tag: v2.3c1~1782 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f59d528c5a9bfbcc93fdf8bd42d8738105b675c;p=python Enable argv emulation if required. Fixed a bug for applets with their own plist files. --- diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 89d4510335..c6430b0211 100644 --- a/Lib/plat-mac/buildtools.py +++ b/Lib/plat-mac/buildtools.py @@ -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: