Home | History | Annotate | Download | only in plat-mac

Lines Matching refs:TEMPLATE

30 # Template file (searched on sys.path)
31 TEMPLATE = "PythonInterpreter"
51 def findtemplate(template=None):
52 """Locate the applet template along sys.path"""
55 if not template:
56 template=TEMPLATE
58 file = os.path.join(p, template)
65 raise BuildError, "Template %r not found on sys.path" % (template,)
69 def process(template, filename, destname, copy_codefragment=0,
121 process_common(template, progress, code, rsrcname, destname, 0,
125 def update(template, filename, output):
144 process_common(template, progress, None, filename, output, 1, 1)
147 def process_common(template, progress, code, rsrcname, destname, is_update,
150 return process_common_macho(template, progress, code, rsrcname, destname,
155 template_fsr, d1, d2 = Carbon.File.FSResolveAliasFile(template, 1)
156 template = template_fsr.as_pathname()
158 # Copy data (not resources, yet) from the template
164 tmpl = open(template, "rb")
186 # Copy the resources from the target specific resource template, if any
202 # Check which resource-types we should not copy from the template
212 # Copy the resources from the template
214 input = Res.FSOpenResourceFile(template, RESOURCE_FORK_NAME, READ)
219 ## raise BuildError, "No owner resource found in either resource file or template"
225 # No owner resource in the template. We have skipped the
227 # bundle stuff is already included in the interpret/applet template.
282 def process_common_macho(template, progress, code, rsrcname, destname, is_update,