Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f59d52

Browse files
committed
Enable argv emulation if required.
Fixed a bug for applets with their own plist files.
1 parent a03adde commit 9f59d52

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/plat-mac/buildtools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,12 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update
303303
for o in others:
304304
builder.resources.append(o)
305305
if plistname:
306-
import Plist
307-
builder.plist = Plist.fromFile(plistname)
306+
import plistlib
307+
builder.plist = plistlib.Plist.fromFile(plistname)
308308
if icnsname:
309309
builder.iconfile = icnsname
310+
if not raw:
311+
builder.argv_emulation = 1
310312
builder.setup()
311313
builder.build()
312314
if progress:

0 commit comments

Comments
 (0)