summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2011-05-10 21:00:18 -0400
committerluxagraf <sng@luxagraf.net>2011-05-10 21:00:18 -0400
commitbb80187bb3dc8807cad92e93c9bb9355de794438 (patch)
tree31bcbd319369348ed2cfacbb1c6db0e938e558c0 /apps
parentda45f4a0e60f7f1fa4be77b3714600abea180f92 (diff)
parent8ca8eb2a159840cb4900328521716808fb1db761 (diff)
Merge branch 'master' of http://git.luxagraf.net/luxagraf
Diffstat (limited to 'apps')
-rw-r--r--apps/build/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/build/base.py b/apps/build/base.py
index afcc8f8..f6df69d 100644
--- a/apps/build/base.py
+++ b/apps/build/base.py
@@ -172,7 +172,10 @@ class BuildContact(Build):
def build(self):
c = Client()
response = c.get('/contact/')
- fpath = '%scontact/index.html' %(settings.BAKED_ROOT)
+ path = '%scontact/' %(settings.BAKED_ROOT)
+ if not os.path.isdir(path):
+ os.makedirs(path)
+ fpath = '%sindex.html' %(path)
self.write_file(fpath,str(response.content))
class BuildProjects(Build):