From 505ebdf471d1664235c4981453b4a274b46c24f9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 19 Mar 2011 13:22:44 +0100 Subject: Fix template.py --- scripts/template.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/template.py b/scripts/template.py index eb1c5ad..eaa1682 100755 --- a/scripts/template.py +++ b/scripts/template.py @@ -44,14 +44,17 @@ def substitute(target, prefix, htmltemplate, datenow, chattopic, keywords, conte outputfile.write(htmltext) outputfile.close() +contentpath = "../template/" +target = "../public/" + #set template -f = open("template.html", "r") +f = open(contentpath + "template.html", "r") htmltemplate = f.read() f.close print ("template read") #set chattopic -f = open("chattopic", "r") +f = open(contentpath + "chattopic", "r") chattopic = f.read() f.close print ("chattopic read") @@ -60,9 +63,6 @@ print ("chattopic read") datenow = time.strftime("%Y-%m-%dT%H:%M:%S +0100") print ("Set date: " + datenow) -contentpath = "../template/" -target = "../public/" - prefixes = ['index', 'neues', 'termine', 'raeume', 'lage', 'kontakt', 'verein', 'impressum', 'webcam'] for prefix in prefixes: -- cgit v1.2.1