changeset 442:c29714c601da

use os.mkdirs to create static web directory to get rid of noisy errors if a build machine is rebooted and tmp dir is cleaned
author Bjoern Ricks <bricks@intevation.de>
date Fri, 06 Aug 2010 14:27:01 +0000
parents eadcb1bb54e2
children 464b2947af23
files treepkg/web.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/web.py	Fri Aug 06 13:41:54 2010 +0000
+++ b/treepkg/web.py	Fri Aug 06 14:27:01 2010 +0000
@@ -71,7 +71,7 @@
         """Creates a static web-page under destdir"""
         # make sure we have an empty destdir
         shutil.rmtree(destdir, True)
-        os.mkdir(destdir)
+        os.mkdirs(destdir)
 
         # create the index file
         f = open(os.path.join(destdir, "index.html"), "wt")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)