diff --git a/rtt/deployment/ComponentLoader.cpp b/rtt/deployment/ComponentLoader.cpp index 434016613..9ac9d0497 100644 --- a/rtt/deployment/ComponentLoader.cpp +++ b/rtt/deployment/ComponentLoader.cpp @@ -385,39 +385,6 @@ bool ComponentLoader::import( std::string const& path_list ) // If the path is not complete (not absolute), look it up in the search directories: log(Debug) << "No such directory: " << p<< endlog(); } -#if 0 - // Repeat for path/OROCOS_TARGET: (already done in other import function) - p = path(*it) / OROCOS_TARGET_NAME; - if (is_directory(p)) - { - log(Info) << "Importing component libraries from directory " << p.string() << " ..."<path().string() << " ..."; - if (is_regular_file(itr->status()) && isLoadableLibrary(itr->path()) ) { - found = true; -#if BOOST_VERSION >= 104600 - all_good = loadInProcess( itr->path().string(), makeShortFilename(itr->path().filename().string() ), true) && all_good; -#else - all_good = loadInProcess( itr->path().string(), makeShortFilename(itr->path().filename() ), true) && all_good; -#endif - }else { - if (!is_regular_file(itr->status())) - log(Debug) << "not a regular file: ignored."<loadTypekits( p.string() ) || found; - found = PluginLoader::Instance()->loadPlugins( p.string() ) || found; - } catch (std::exception& e) { - all_good = false; - log(Error) << e.what() <::iterator it = vpaths.begin(); it != vpaths.end(); ++it) { + for(vector::iterator it = vpaths.begin(); !path_found && it != vpaths.end(); ++it) { p = *it; p = p / package; // we only search in existing directories: