Enable argv emulation if required.

Fixed a bug for applets with their own plist files.
This commit is contained in:
Jack Jansen 2003-02-18 23:30:27 +00:00
parent a03adde31b
commit 9f59d528c5
1 changed files with 4 additions and 2 deletions

View File

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