| 238 | } |
| 239 | |
| 240 | QString DockerRuntime::findExecutable(const QString& executableName) const |
| 241 | { |
| 242 | QStringList rtPaths; |
| 243 | |
| 244 | auto envPaths = getenv(QByteArrayLiteral("PATH")).split(':'); |
| 245 | std::transform(envPaths.begin(), envPaths.end(), std::back_inserter(rtPaths), |
| 246 | [this](QByteArray p) { |
| 247 | return pathInHost(Path(QString::fromLocal8Bit(p))).toLocalFile(); |
| 248 | }); |
| 249 | |
| 250 | return QStandardPaths::findExecutable(executableName, rtPaths); |
| 251 | } |
| 252 | |
| 253 | #include "moc_dockerruntime.cpp" |
nothing calls this directly
no test coverage detected