Skip to content
Snippets Groups Projects
Commit 8fbf2803 authored by bow's avatar bow
Browse files

Merge branch 'patch-executable_check' into 'develop'

Patch executable check

See merge request !114
parents 27035485 043874a8
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