constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 82af1457e2ca5c93228d2baf5dc03a0660542d4b
parent b97ce3a6ecba3f2c48912e651bdf305fb24bd268
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 20 Nov 2010 13:28:09 +1000

ensure wrapped pages get written to the right place

Diffstat:
Mconstance.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/constance.py b/constance.py
@@ -65,8 +65,10 @@ def main():
 
     for filename in os.listdir(config.get('paths', 'root')):
         if filename.endswith('.html.in'):
-            transformed = str(xslt(lxml.etree.parse(filename)))
-            output(filename[:-3], transformed)
+            src = os.path.join(config.get('paths', 'root'), filename)
+            dest = src[:-3]
+            transformed = str(xslt(lxml.etree.parse(src)))
+            output(dest, transformed)
 
     homepage.generate(config.get('paths', 'root'), xslt, blog_entries, 
             reading_entries, template_config=template_config)