changeset 529:ed37b6a02897

Automatically create the log dir if it doesn't exist, not just the leaf bitten dir.
author wbell
date Sat, 21 Mar 2009 19:05:13 +0000
parents f3bf55de8a34
children 81e43e3770e6
files bitten/model.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/model.py
+++ b/bitten/model.py
@@ -703,7 +703,7 @@
         if not os.path.isabs(self.logs_dir):
             self.logs_dir = os.path.join(env.path, self.logs_dir)
         if not os.path.exists(self.logs_dir):
-            os.mkdir(self.logs_dir)
+            os.makedirs(self.logs_dir)
 
     exists = property(fget=lambda self: self.id is not None,
                       doc='Whether this build log exists in the database')
Copyright (C) 2012-2017 Edgewall Software