MCPcopy Create free account
hub / github.com/PDAL/PDAL / pluginSearchPaths

Function pluginSearchPaths

pdal/PluginDirectory.cpp:46–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44{
45
46StringList pluginSearchPaths()
47{
48 StringList searchPaths;
49 std::string envOverride;
50
51 Utils::getenv("PDAL_DRIVER_PATH", envOverride);
52
53 if (!envOverride.empty())
54 searchPaths = Utils::split2(envOverride, Utils::pathListSeparator);
55 else
56 {
57 StringList possiblePaths { ".", "./lib", "../lib", "./bin", "../bin", Utils::dllDir(),
58 Config::pluginInstallPath() };
59
60 for (std::string s : possiblePaths)
61 {
62 s = FileUtils::toCanonicalPath(s);
63 if (s.size() && !Utils::contains(searchPaths, s))
64 searchPaths.push_back(s);
65 }
66 }
67 return searchPaths;
68}
69
70// libpdal_plugin_{stagetype}_{name}.{extension}
71// For example, libpdal_plugin_writer_text.so or

Callers 1

PluginDirectoryMethod · 0.85

Calls 6

dllDirFunction · 0.85
pluginInstallPathFunction · 0.85
toCanonicalPathFunction · 0.85
containsFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected