From 704adb32b5bd4d65369bdba90b52cd34f308d9fc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 22 Jul 2012 15:35:54 -0400 Subject: [PATCH] Fix path. --- build.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.py b/build.py index 8444990..3e2dd1b 100755 --- a/build.py +++ b/build.py @@ -11,7 +11,7 @@ import os import sys os.chdir("..") -sys.path.insert(0, os.path.join(".", "{{source_dir}}")) +sys.path.insert(0, ".") from mako.template import Template from mako.lookup import TemplateLookup @@ -42,7 +42,6 @@ class Builder(object): self.static_dir = "static" self.pages_dir = "pages" self.support_dir = "pages/support" - self.source_dir = "toolserver" self.temp_dir = "temp" self.rs_file = "rewrite.script" @@ -69,7 +68,6 @@ class Builder(object): logger.debug("build {0} -> {1}".format(src, dest)) content = page_src.replace("{{src}}", src) content = content.replace("{{pages_dir}}", self.pages_dir) - content = content.replace("{{source_dir}}", self.source_dir) content = content.replace("{{temp_dir}}", self.temp_dir) with open(dest, "w") as fp: fp.write(content)