Mercurial > hg > MakeItSo
diff 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 |
line wrap: on
line diff
--- a/makeitso/makeitso.py Mon Jan 10 12:35:37 2011 -0800 +++ b/makeitso/makeitso.py Mon Jan 10 12:39:26 2011 -0800 @@ -223,6 +223,11 @@ f.close() else: print >> f, output + try: + os.chmod(self.output, os.stat(self.name).st_mode) + except: + pass + class DirectoryTemplate(ContentTemplate): """template for a directory structure"""