summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-11-10 20:45:14 -0500
committerluxagraf <sng@luxagraf.net>2014-11-10 20:45:14 -0500
commit9454271f27a90d8feb3fb8a11164f5b04a512139 (patch)
tree85213cf120a67a936b9cf4c38097a806fa5b69ef /build.py
parentf650f1860eabfb7d114513dbd0980698ca2b7f84 (diff)
got rid of build file for pages
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/build.py b/build.py
deleted file mode 100755
index 1c20f4e..0000000
--- a/build.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import os
-import sys
-import site
-from os.path import dirname, abspath
-SERVER_ROOT = abspath(dirname(dirname(__file__))) + '/'
-site.addsitedir(SERVER_ROOT + 'venv/lib/python3.4/site-packages')
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
-sys.path = [SERVER_ROOT, ] + sys.path
-sys.path.insert(0, os.path.join(SERVER_ROOT, "app"))
-sys.path.insert(0, os.path.join(SERVER_ROOT, "app/lib"))
-sys.path.insert(0, os.path.join(SERVER_ROOT, "config"))
-from pages.models import PageGenerator
-PageGenerator(os.path.join(SERVER_ROOT, "_pages")).write_files()