From 04fa4b9ef03ffe507b2205d21c38712ef4bc4fc2 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 2 Jan 2005 23:17:06 +0000 Subject: [PATCH] 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. --- Mac/scripts/BuildApplet.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py index a3bf73ab51b3..f9d94a124ec0 100644 --- a/Mac/scripts/BuildApplet.py +++ b/Mac/scripts/BuildApplet.py @@ -99,9 +99,14 @@ def buildapplet(): 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" -- 2.47.3