Commit 63c00a91 authored by Peter van 't Hof's avatar Peter van 't Hof Committed by GitHub

Merge pull request #60 from biopet/fix-BIOPET-637

Make python script absolute paths
parents 492b52f0 db12161e
......@@ -33,7 +33,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction {
* @param script name / location of script
*/
def setPythonScript(script: String) {
pythonScript = new File(script)
pythonScript = new File(script).getAbsoluteFile
if (!pythonScript.exists()) {
setPythonScript(script, "")
} else {
......@@ -48,7 +48,7 @@ trait PythonCommandLineFunction extends BiopetCommandLineFunction {
*/
def setPythonScript(script: String, subpackage: String) {
pythonScriptName = script
pythonScript = new File(".queue/tmp/" + subpackage + pythonScriptName)
pythonScript = new File(".queue/tmp/" + subpackage + pythonScriptName).getAbsoluteFile
if (!pythonScript.getParentFile.exists) pythonScript.getParentFile.mkdirs
val is = getClass.getResourceAsStream(subpackage + pythonScriptName)
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