[Python-checkins] python/dist/src/Mac/scripts BuildApplet.py, 1.20.8.1, 1.20.8.2

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Mon Jan 3 00:17:09 CET 2005


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28345

Modified Files:
      Tag: release23-maint
	BuildApplet.py 
Log Message:
Added a band-aid to make this script work with the older 2.3.0
buildtools if no destroot option is given. That makes life for the
additions installer a lot simpler.


Index: BuildApplet.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/BuildApplet.py,v
retrieving revision 1.20.8.1
retrieving revision 1.20.8.2
diff -u -d -r1.20.8.1 -r1.20.8.2
--- BuildApplet.py	31 Dec 2004 10:44:24 -0000	1.20.8.1
+++ BuildApplet.py	2 Jan 2005 23:17:06 -0000	1.20.8.2
@@ -99,9 +99,14 @@
 			if tp == 'APPL':
 				buildtools.update(template, filename, dstfilename)
 			else:
-				buildtools.process(template, filename, dstfilename, 1,
-						rsrcname=rsrcfilename, others=extras, raw=raw,
-						progress=verbose, destroot=destroot)
+				if destroot:
+					buildtools.process(template, filename, dstfilename, 1,
+							rsrcname=rsrcfilename, others=extras, raw=raw,
+							progress=verbose, destroot=destroot)
+				else:
+					buildtools.process(template, filename, dstfilename, 1,
+							rsrcname=rsrcfilename, others=extras, raw=raw,
+							progress=verbose)
 
 def usage():
 	print "BuildApplet creates an application from a Python source file"



More information about the Python-checkins mailing list