diff --git a/tycker/tycker.py b/tycker/tycker.py index 32524fb..186e586 100644 --- a/tycker/tycker.py +++ b/tycker/tycker.py @@ -17,8 +17,6 @@ # License along with tycker. If not, see . # -import subprocess - import os # the basedir is the parent dir of the location of this script BASE_DIR = os.path.dirname(os.path.abspath(__file__)) @@ -39,6 +37,7 @@ import datetime import bobo import sqlobject import genshi.template +import subprocess from settings import * @@ -86,7 +85,7 @@ def update_static_html(): rendered = render("display.html", **values).encode("latin-1") open(current_filename, "w").write(rendered) file_index += 1 - subprocess.call(["html2wml", "-n", current_filename, "-o", "ticker1.wml"], cwd=OUTPUT_DIR) + subprocess.call(["html2wml", "-n", "ticker1.html", "-o", "ticker1.wml"], cwd=OUTPUT_DIR) @bobo.query('/submit') def submit_entry(entry_id=None, title=None, content=None, date=None):