From 89fe7bf7ab6813ed21361941ac17253895d07b03 Mon Sep 17 00:00:00 2001 From: Gianluca Montecchi Date: Wed, 21 Oct 2009 23:30:35 +0200 Subject: 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(-) (limited to 'becommands') 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") -- cgit From 9abbc1a94d03e2aa7eb96fca549bce42a7872320 Mon Sep 17 00:00:00 2001 From: Gianluca Montecchi Date: Wed, 21 Oct 2009 23:34:05 +0200 Subject: Fixed a typo in the --export-dir-template options --- becommands/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'becommands') diff --git a/becommands/html.py b/becommands/html.py index 708077e..0b28b4a 100644 --- a/becommands/html.py +++ b/becommands/html.py @@ -78,7 +78,7 @@ def get_parser(): help='Verbose output, default is %default', default=False) parser.add_option('-e', '--export-template', action='store_true', metavar='STRING', dest='exp_template', help='Export the default template into a directory (%default)', default='./templates/default') - parser.add_option('-d', '--export-dir_template', metavar='STRING', dest='exp_dir_template', + parser.add_option('-d', '--export-dir-template', metavar='STRING', dest='exp_dir_template', help='Export the default template into a directory (%default)', default='./templates/default') return parser -- cgit