From 07d737c54a2a616a80e04221a6733c54857cb989 Mon Sep 17 00:00:00 2001 From: Ryan Wilkinson <r.wilkinson@surrey.ac.uk> Date: Wed, 15 Apr 2015 16:30:37 +0100 Subject: [PATCH] * Fixing issue with library not loading under special conditions on linux --- NPLib/Core/NPDetectorFactory.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPLib/Core/NPDetectorFactory.cxx b/NPLib/Core/NPDetectorFactory.cxx index 961f9bc64..6694b30f6 100644 --- a/NPLib/Core/NPDetectorFactory.cxx +++ b/NPLib/Core/NPDetectorFactory.cxx @@ -77,10 +77,10 @@ NPA::VDetector* DetectorFactory::Construct(std::string Token){ else if( m_TokenLib.find(Token)!=m_TokenLib.end()){ // Add absolute path to library name std::string path = getenv("NPTOOL"); - std::string libName = path+"NPLib/lib/"+m_TokenLib[Token]; + std::string libName = path+"/NPLib/lib/"+m_TokenLib[Token]; dlopen(libName.c_str(),RTLD_NOW); - if(m_Construct.find(Token)!=m_Construct.end()) + if(m_Construct.find(Token)!=m_Construct.end()) return m_Construct[Token](); else{ -- GitLab