MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setSearchPaths

Method setSearchPaths

src/model/PythonPluginSearchPaths.cpp:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers 2

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 4

cbeginMethod · 0.80
cendMethod · 0.80
toPathFunction · 0.50
sizeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64