From 2504e657762ee6ff82a9fe25c8900d2c90ecd497 Mon Sep 17 00:00:00 2001 From: Marina Ganeva <m.ganeva@fz-juelich.de> Date: Fri, 27 Mar 2015 16:16:29 +0100 Subject: [PATCH] Fixed import of dnsdata. --- .../PythonInterface/plugins/algorithms/LoadDNSLegacy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/LoadDNSLegacy.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/LoadDNSLegacy.py index 56d8bf21af9..62b8cc71d14 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/LoadDNSLegacy.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/LoadDNSLegacy.py @@ -3,7 +3,11 @@ from mantid.api import * import mantid.simpleapi as api import numpy as np +import os, sys + +sys.path.insert(0, os.path.dirname(__file__)) from dnsdata import DNSdata +sys.path.pop(0) class LoadDNSLegacy(PythonAlgorithm): """ -- GitLab