summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2011-05-10 19:58:20 -0500
committerluxagraf <sng@luxagraf.net>2011-05-10 19:58:20 -0500
commit8ca8eb2a159840cb4900328521716808fb1db761 (patch)
tree8af24aab4f6e226fb1f0f1cf4de1fc5fedfaf9fa /apps
parentdc389ac8529df0cbb21d54c2020b24681d03cec2 (diff)
bug fixes for map and build scripts
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):