From 8ca8eb2a159840cb4900328521716808fb1db761 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 10 May 2011 19:58:20 -0500 Subject: bug fixes for map and build scripts --- apps/build/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') 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): -- cgit v1.2.3-70-g09d2