Used makedirs instead mkdir at all places
This commit is contained in:
parent
e7f216e44d
commit
2c56bf24fc
|
@ -30,7 +30,7 @@ class TemplateMixin(object):
|
||||||
out_path = os.path.join(output_directory, url)
|
out_path = os.path.join(output_directory, url)
|
||||||
out_dir = os.path.dirname(out_path)
|
out_dir = os.path.dirname(out_path)
|
||||||
if not os.path.isdir(out_dir):
|
if not os.path.isdir(out_dir):
|
||||||
os.mkdir(out_dir)
|
os.makedirs(out_dir)
|
||||||
|
|
||||||
print "Rendering %s" % out_path
|
print "Rendering %s" % out_path
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ class Verdandi(object):
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
if not os.path.exists(self.output_directory):
|
if not os.path.exists(self.output_directory):
|
||||||
os.mkdir(self.output_directory)
|
os.makedirs(self.output_directory)
|
||||||
for module in self.modules:
|
for module in self.modules:
|
||||||
module.render(self.output_directory, self.jinja_env)
|
module.render(self.output_directory, self.jinja_env)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue