comparison makeitso/makeitso.py @ 86:2c1310e94645

try to interpolate templates
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 Jan 2011 12:39:26 -0800
parents 7909dfaef33b
children 3571417ef92e
comparison
equal deleted inserted replaced
85:cb6c54b1adf3 86:2c1310e94645
221 f = file(f, 'w') 221 f = file(f, 'w')
222 print >> f, output 222 print >> f, output
223 f.close() 223 f.close()
224 else: 224 else:
225 print >> f, output 225 print >> f, output
226 try:
227 os.chmod(self.output, os.stat(self.name).st_mode)
228 except:
229 pass
230
226 231
227 class DirectoryTemplate(ContentTemplate): 232 class DirectoryTemplate(ContentTemplate):
228 """template for a directory structure""" 233 """template for a directory structure"""
229 234
230 def __init__(self, directory, output=None, interactive=True, variables=None): 235 def __init__(self, directory, output=None, interactive=True, variables=None):