Skip to content
Snippets Groups Projects
Commit 043874a8 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Possible to not convert executable to CanonicalPath

parent 1571f046
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,9 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
super.freezeFieldValues()
}
/** can override this value is executable may not be converted to CanonicalPath */
val executableToCanonicalPath = true
/**
* Checks executable. Follow full CanonicalPath, checks if it is existing and do a md5sum on it to store in job report
*/
......@@ -87,7 +90,8 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
if (process.exitValue == 0) {
executable = buffer.toString
val file = new File(executable)
executable = file.getCanonicalPath
if (executableToCanonicalPath) executable = file.getCanonicalPath
else executable = file.getAbsolutePath
} else {
BiopetQScript.addError("executable: '" + executable + "' not found, please check config")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment