changeset 86:2c1310e94645

try to interpolate templates
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 Jan 2011 12:39:26 -0800
parents cb6c54b1adf3
children 3571417ef92e
files makeitso/makeitso.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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"""