| 44 | { |
| 45 | |
| 46 | StringList 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 |
no test coverage detected