[Python-checkins] CVS: python/dist/src/Mac/scripts BuildApplication.py,1.8,1.9
Jack Jansen
jackjansen@users.sourceforge.net
Mon, 27 Aug 2001 14:40:29 -0700
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv5073/Python/Mac/scripts
Modified Files:
BuildApplication.py
Log Message:
Use the new macresource module to open the accompanying resource file (if needed).
Index: BuildApplication.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/BuildApplication.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** BuildApplication.py 2001/08/25 12:01:44 1.8
--- BuildApplication.py 2001/08/27 21:40:27 1.9
***************
*** 19,22 ****
--- 19,23 ----
import EasyDialogs
import buildtools
+ import macresource
# Hmmm...
***************
*** 39,49 ****
! try:
! Res.GetResource('DITL', DLG_ID)
! except Res.Error:
! Res.FSpOpenResFile("BuildApplication.rsrc", 1)
! else:
! pass # we're an applet
!
def main():
--- 40,44 ----
! macresource.need('DITL', DLG_ID, "BuildApplication.rsrc")
def main():