make Gen folder if not exists
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -53,6 +53,7 @@ codeship.aes
|
|||||||
|
|
||||||
# Auto generated files
|
# Auto generated files
|
||||||
source/Core/Inc/unit.h
|
source/Core/Inc/unit.h
|
||||||
|
source/Core/Gen/
|
||||||
# IDE configs
|
# IDE configs
|
||||||
.vs/*
|
.vs/*
|
||||||
.settings/*
|
.settings/*
|
||||||
|
|||||||
@@ -550,6 +550,8 @@ def read_opts():
|
|||||||
outFileTranslationCPP = sys.argv[2]
|
outFileTranslationCPP = sys.argv[2]
|
||||||
else:
|
else:
|
||||||
outDir = os.path.relpath(jsonDir + "/../source/Core/Gen")
|
outDir = os.path.relpath(jsonDir + "/../source/Core/Gen")
|
||||||
|
if not os.path.exists(outDir):
|
||||||
|
os.makedirs(outDir)
|
||||||
outFileTranslationCPP = os.path.join(outDir, TRANSLATION_CPP)
|
outFileTranslationCPP = os.path.join(outDir, TRANSLATION_CPP)
|
||||||
|
|
||||||
if len(sys.argv) > 3:
|
if len(sys.argv) > 3:
|
||||||
|
|||||||
Reference in New Issue
Block a user