[Treepkg-commits] r402 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 6 16:27:02 CEST 2010


Author: bricks
Date: 2010-08-06 16:27:01 +0200 (Fri, 06 Aug 2010)
New Revision: 402

Modified:
   trunk/treepkg/web.py
Log:
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


Modified: trunk/treepkg/web.py
===================================================================
--- trunk/treepkg/web.py	2010-08-06 13:41:54 UTC (rev 401)
+++ trunk/treepkg/web.py	2010-08-06 14:27:01 UTC (rev 402)
@@ -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")



More information about the Treepkg-commits mailing list