Commit 63a2cc0b authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

guarantee tmp directory with NOMAD_CODE_ROOT set

parent 67de431f
......@@ -167,8 +167,12 @@ class SimpleExternalParserGenerator(
Files.createDirectories(lab.LocalEnv.defaultSettings.procTmpDir, lab.LocalEnv.directoryPermissionsAttributes)
val tmpDir = if (wantsTmp)
Files.createTempDirectory(lab.LocalEnv.defaultSettings.procTmpDir, "parserTmp", lab.LocalEnv.directoryPermissionsAttributes)
else {
val t = envDir.resolve("tmp")
if (!Files.exists(t))
Files.createDirectory(t, lab.LocalEnv.directoryPermissionsAttributes)
if (trace)"parser $name created tmpDir for optimized parser at $tmpDir")
val allReplacements = extraCmdVars +
("envDir" -> envDir.toString()) +
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment