Skip to content
Snippets Groups Projects
Commit 07d737c5 authored by Ryan Wilkinson's avatar Ryan Wilkinson
Browse files

* Fixing issue with library not loading under special conditions on linux

parent f1ecc493
No related branches found
No related tags found
No related merge requests found
......@@ -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{
......
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