Skip to content
Snippets Groups Projects
Commit 73c3fd6f authored by Doucet, Mathieu's avatar Doucet, Mathieu
Browse files

Long overdue one-liner that will make life in pythonland much easier...

Long overdue one-liner that will make life in pythonland much easier (MANTIDPATH environment variable). Re #1594
parent 79bbce72
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
#include "Poco/DOM/Element.h"
#include "Poco/DOM/NodeList.h"
#include "Poco/Notification.h"
#include "Poco/Environment.h"
#include <fstream>
#include <sstream>
......@@ -139,7 +140,10 @@ ConfigServiceImpl::ConfigServiceImpl() :
if (callingApplication.find("python") != std::string::npos || callingApplication.find("matlab")
!= std::string::npos)
{
m_strBaseDir = Poco::Path::current();
if (Poco::Environment::has("MANTIDPATH"))
m_strBaseDir = Poco::Environment::get("MANTIDPATH");
else
m_strBaseDir = Poco::Path::current();
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment