From a8db58a482471ad79596d22b78b69d0667f93ae9 Mon Sep 17 00:00:00 2001 From: Elliot Oram <Elliot.Oram@stfc.ac.uk> Date: Fri, 23 Oct 2015 10:49:23 +0100 Subject: [PATCH] Added defaulting to cwd for saving Refs #13826 --- .../plugins/algorithms/WorkflowAlgorithms/QLRun.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/QLRun.py b/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/QLRun.py index ee30006531c..0390f21ef48 100644 --- a/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/QLRun.py +++ b/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/QLRun.py @@ -8,6 +8,11 @@ from mantid import config, logger import os import numpy as np +if is_supported_f2py_platform(): + QLr = import_f2py("QLres") + QLd = import_f2py("QLdata") + Qse = import_f2py("QLse") + class QLRun(PythonAlgorithm): _program = None @@ -159,7 +164,10 @@ class QLRun(PythonAlgorithm): fitOp = [o_el, o_bgd, o_w1, o_res] - workdir = getDefaultWorkingDirectory() + workdir = config['defaultsave.directory'] + if not os.path.isdir(workdir): + workdir = os.getcwd() + logger.information('Default Save directory is not set. Defaulting to current working Directory: ' + workdir) array_len = 4096 # length of array in Fortran CheckXrange(erange,'Energy') -- GitLab