diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala index 0dcf13eeab40c0f502a181b267da9dea9d3f3bb9..115bca1b89aa8e6e7c41b48bce511e379de72a45 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala @@ -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") }