validate:tools: Create the rendering directory if it does not exist

This commit is contained in:
Thibault Saunier 2014-01-10 10:58:54 +01:00
parent 8697dd3da4
commit 0b3b456f6a

View file

@ -80,6 +80,8 @@ def main():
options.xunit_file = os.path.join(options.logsdir, "xunit.xml")
if options.dest is None:
options.dest = os.path.join(options.logsdir, "rendered")
if not os.path.exists(options.dest):
os.makedirs(options.dest)
if urlparse.urlparse(options.dest).scheme == "":
options.dest = path2url(options.dest)
if options.no_color: