Fix issue if build dir not created

This commit is contained in:
Joey Yakimowich-Payne 2018-06-26 12:04:30 +09:00
commit 47165af14c

View file

@ -303,10 +303,11 @@ proc processArgs() =
buildInfo.name = buildInfo.filename.splitFile().name
if buildInfo.outDir == "":
buildInfo.outDir = expandFilename("build")
buildInfo.outDir = "build"
if not dirExists buildInfo.outDir:
createDir buildInfo.outDir
buildInfo.outDir = expandFilename(buildInfo.outDir)
if buildInfo.dkpPath == "":
buildInfo.dkpPath = getEnv(dkpEnv, "").sanitizePath()