From 89fe7bf7ab6813ed21361941ac17253895d07b03 Mon Sep 17 00:00:00 2001 From: Gianluca Montecchi Date: Wed, 21 Oct 2009 23:30:35 +0200 Subject: [PATCH] Fixed a problem with the creation of nested directory (i.e.: be html -o dir1/dir2 failed to create dir2 if dir1 does not exists) --- becommands/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/becommands/html.py b/becommands/html.py index 232aa80..708077e 100644 --- a/becommands/html.py +++ b/becommands/html.py @@ -173,7 +173,7 @@ class HTMLGen (object): self.out_dir = os.path.abspath(os.path.expanduser(out_dir)) if not os.path.exists(self.out_dir): try: - os.mkdir(self.out_dir) + os.makedirs(self.out_dir) except: raise cmdutil.UsageError, "Cannot create output directory '%s'." % self.out_dir self.out_dir_bugs = os.path.join(self.out_dir, "bugs") -- 2.26.2