Create output dir if it does not exist.

This commit is contained in:
Ochi Wolfe 2013-08-26 01:27:45 +02:00
parent 5f98498669
commit 8525b1dee8

View file

@ -21,6 +21,10 @@ from lib.ScriptReader import ScriptReader
FONTS_DIR = "fonts"
SCRIPTS_DIR = "scripts"
OUTPUT_DIR = "output"
if not os.path.exists(OUTPUT_DIR):
os.mkdir(OUTPUT_DIR)
# Iterate through all directories in the "fonts" directory.
for fontName in os.listdir(FONTS_DIR):