]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface.cxx
More plugins added
[cpPlugins.git] / lib / cpPlugins / Interface.cxx
index 58e468d29e114cc2b802a22fab6cb1b8f90d07f2..1d883736b1af1fffdf9350921c756e500626586a 100644 (file)
@@ -82,7 +82,9 @@ LoadPluginFile( const std::string& filename )
       );
 
   // Check if it was already loaded
-  if( this->m_DynLibraries.find( canonical_fn ) != this->m_DynLibraries.end( ) )
+  if(
+    this->m_DynLibraries.find( canonical_fn ) != this->m_DynLibraries.end( )
+    )
     return;
 
   // Ok, try to load the library
@@ -154,7 +156,11 @@ LoadPluginDir( const std::string& dirname )
     {
       try
       {
-        this->LoadPluginFile( ent->d_name );
+        this->LoadPluginFile(
+          dirname +
+          std::string( "/" ) +
+          ent->d_name
+          );
         count++;
       }
       catch( ... )