0

Create the destdir, if needed

This commit is contained in:
Andrew Chin
2012-01-05 00:27:22 -05:00
parent da18f74338
commit d7012c265b

View File

@@ -394,6 +394,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
render_things = mw_parser.get_render_things()
tilesets = []
# once we've made sure that everything validations, we can check to
# make sure the destdir exists
if not os.path.exists(destdir):
os.mkdir(destdir)
for render_name in render_things:
render = render_things[render_name]
logging.debug("Found the following render thing: %r", render)