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
|
||||
source/Core/Inc/unit.h
|
||||
source/Core/Gen/
|
||||
# IDE configs
|
||||
.vs/*
|
||||
.settings/*
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user