[Python-checkins] python/dist/src/Mac/Lib buildtools.py,1.15,1.16

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年8月05日 15:06:31 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv10601
Modified Files:
	buildtools.py 
Log Message:
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.
Index: buildtools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/buildtools.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** buildtools.py	2 Aug 2002 14:57:43 -0000	1.15
--- buildtools.py	5 Aug 2002 22:06:29 -0000	1.16
***************
*** 323,327 ****
 <key>NSPrincipalClass</key>
 <string>NSApplication</string>""" % nibname
! 
 
 		plistname = os.path.join(template, 'Contents', 'Resources', 'Applet-Info.plist')
--- 323,336 ----
 <key>NSPrincipalClass</key>
 <string>NSApplication</string>""" % 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 = """
! <key>NSMainNibFile</key>
! <string>%s</string>
! <key>NSPrincipalClass</key>
! <string>NSApplication</string>""" % nibname
 
 		plistname = os.path.join(template, 'Contents', 'Resources', 'Applet-Info.plist')

AltStyle によって変換されたページ (->オリジナル) /