| 104 | } |
| 105 | |
| 106 | bool PythonPluginSearchPaths_Impl::setSearchPaths(const std::vector<openstudio::path>& searchPaths) { |
| 107 | bool result = true; |
| 108 | |
| 109 | clearSearchPaths(); |
| 110 | |
| 111 | for (const auto& s : searchPaths) { |
| 112 | bool thisResult = addSearchPath(s); |
| 113 | if (!thisResult) { |
| 114 | LOG(Warn, "Couldn't add search path " << s << " to PythonPlugin:SearchPaths, skipping and continuing."); |
| 115 | result = false; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | return result; |
| 120 | } |
| 121 | |
| 122 | void PythonPluginSearchPaths_Impl::clearSearchPaths() { |
| 123 | clearExtensibleGroups(); |