1
0
forked from me/IronOS

make Gen folder if not exists

This commit is contained in:
Ben V. Brown
2021-01-17 09:49:27 +11:00
parent 184b2c909f
commit 84eafbc1ff
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@@ -53,6 +53,7 @@ codeship.aes
# Auto generated files
source/Core/Inc/unit.h
source/Core/Gen/
# IDE configs
.vs/*
.settings/*

View File

@@ -550,6 +550,8 @@ def read_opts():
outFileTranslationCPP = sys.argv[2]
else:
outDir = os.path.relpath(jsonDir + "/../source/Core/Gen")
if not os.path.exists(outDir):
os.makedirs(outDir)
outFileTranslationCPP = os.path.join(outDir, TRANSLATION_CPP)
if len(sys.argv) > 3: