[Python-checkins] CVS: python/dist/src/Mac/scripts fullbuild.py,1.72,1.73

Jack Jansen jackjansen@users.sourceforge.net
2001年8月27日 14:39:38 -0700


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv4744/Python/Mac/scripts
Modified Files:
	fullbuild.py 
Log Message:
Use the new macresource module to open the accompanying resource file (if needed).
Index: fullbuild.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/fullbuild.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** fullbuild.py	2001年08月25日 12:04:56	1.72
--- fullbuild.py	2001年08月27日 21:39:36	1.73
***************
*** 20,23 ****
--- 20,24 ----
 import string
 import genpluginprojects
+ import macresource
 
 import aetools
***************
*** 370,378 ****
 				
 def main():
! 	try:
! 		h = Res.FSpOpenResFile('fullbuild.rsrc', 1)
! 	except Res.Error:
! 		pass	# Assume we already have acces to our own resource
! 
 	dir, ok = macfs.GetDirectory('Python source folder:')
 	if not ok:
--- 371,375 ----
 				
 def main():
! 	macresource.need('DLOG', DIALOG_ID, 'fullbuild.rsrc')
 	dir, ok = macfs.GetDirectory('Python source folder:')
 	if not ok:

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