+ std::string onePath(*it);
+
+ ASSERT(!onePath.empty() && "empty search path string");
+
+ // add a slash if there isn't one already
+ if (*onePath.rbegin() != '/')
+ {
+ onePath += '/';
+ }
+
+#if defined(_WIN32) || defined(__WIN32__)
+ boost::replace_all(onePath, "/", "\\");
+#endif
+
+ gSearchPaths.push_back(onePath);
+ logInfo << "added search path " << onePath << std::endl;