Create output dir if it does not exist.
This commit is contained in:
parent
5f98498669
commit
8525b1dee8
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ from lib.ScriptReader import ScriptReader
|
||||||
|
|
||||||
FONTS_DIR = "fonts"
|
FONTS_DIR = "fonts"
|
||||||
SCRIPTS_DIR = "scripts"
|
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.
|
# Iterate through all directories in the "fonts" directory.
|
||||||
for fontName in os.listdir(FONTS_DIR):
|
for fontName in os.listdir(FONTS_DIR):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue