MCPcopy Create free account
hub / github.com/KDE/kdevelop / findExecutable

Method findExecutable

plugins/docker/dockerruntime.cpp:240–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240QString 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"

Callers

nothing calls this directly

Calls 7

transformFunction · 0.85
toLocalFileMethod · 0.80
PathClass · 0.50
findExecutableFunction · 0.50
splitMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected