Commit ef36c469 authored by Peter van 't Hof's avatar Peter van 't Hof

Merge remote-tracking branch 'remotes/origin/develop' into fix-BIOPET-618

parents 0724a458 63c00a91
...@@ -33,7 +33,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction { ...@@ -33,7 +33,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction {
* @param script name / location of script * @param script name / location of script
*/ */
def setPythonScript(script: String) { def setPythonScript(script: String) {
pythonScript = new File(script) pythonScript = new File(script).getAbsoluteFile
if (!pythonScript.exists()) { if (!pythonScript.exists()) {
setPythonScript(script, "") setPythonScript(script, "")
} else { } else {
...@@ -48,7 +48,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction { ...@@ -48,7 +48,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction {
*/ */
def setPythonScript(script: String, subpackage: String) { def setPythonScript(script: String, subpackage: String) {
pythonScriptName = script pythonScriptName = script
pythonScript = new File(".queue/tmp/" + subpackage + pythonScriptName) pythonScript = new File(".queue/tmp/" + subpackage + pythonScriptName).getAbsoluteFile
if (!pythonScript.getParentFile.exists) pythonScript.getParentFile.mkdirs if (!pythonScript.getParentFile.exists) pythonScript.getParentFile.mkdirs
val is = getClass.getResourceAsStream(subpackage + pythonScriptName) val is = getClass.getResourceAsStream(subpackage + pythonScriptName)
if (is != null) { if (is != null) {
......
Markdown is supported
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