From 94caa78ebf5e52716b383236f1a737a6bed57bf6 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 5 Aug 2002 22:06:29 +0000 Subject: [PATCH] Patch by Ronald Oussoren: if there's a .lproj in the extras list also check whether it contains a .nib, and do the Cocoa song and dance if it does. --- Mac/Lib/buildtools.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py index 1047da5713..ca9b252b39 100644 --- a/Mac/Lib/buildtools.py +++ b/Mac/Lib/buildtools.py @@ -322,7 +322,16 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update %s NSPrincipalClass NSApplication""" % nibname - + elif o[-6:] == '.lproj': + files = os.listdir(o) + for f in files: + if f[-4:] == '.nib': + nibname = os.path.split(f)[1][:-4] + cocoainfo = """ + NSMainNibFile + %s + NSPrincipalClass + NSApplication""" % nibname plistname = os.path.join(template, 'Contents', 'Resources', 'Applet-Info.plist') plistdata = open(plistname).read() -- 2.50.1