diff --git a/NPLib/Core/NPDetectorFactory.cxx b/NPLib/Core/NPDetectorFactory.cxx index 961f9bc645e7baa5606289e165fdfb206d546f97..6694b30f6ae0ef15ec63b334e0ec369311ea01f3 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{