diff --git a/Code/Mantid/Kernel/src/ConfigService.cpp b/Code/Mantid/Kernel/src/ConfigService.cpp index a891b8003a5add3c7c02fef2137a0f75480fcac5..f657f1c0cb05188c31f1bd33842501209f544218 100644 --- a/Code/Mantid/Kernel/src/ConfigService.cpp +++ b/Code/Mantid/Kernel/src/ConfigService.cpp @@ -141,7 +141,11 @@ ConfigServiceImpl::ConfigServiceImpl() : != std::string::npos) { if (Poco::Environment::has("MANTIDPATH")) - m_strBaseDir = Poco::Environment::get("MANTIDPATH"); + { + // Here we have to follow the convention of the rest of this code and add a trailing slash. + // Note: adding it to the MANTIDPATH itself will make other parts of the code crash. + m_strBaseDir = Poco::Environment::get("MANTIDPATH") + "/"; + } else m_strBaseDir = Poco::Path::current(); }