summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
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):