Utilize Path class when finding Python executable

This is a code clean up and shouldn't affect the outcome.

PR #22760.
This commit is contained in:
Chocobo1
2025-05-25 15:00:19 +08:00
committed by GitHub
parent d56b353c52
commit 84cd8e1535
5 changed files with 52 additions and 45 deletions

View File

@@ -71,7 +71,7 @@ SearchHandler::SearchHandler(const QString &pattern, const QString &category, co
{
// Load environment variables (proxy)
m_searchProcess->setProcessEnvironment(m_manager->proxyEnvironment());
m_searchProcess->setProgram(Utils::ForeignApps::pythonInfo().executableName);
m_searchProcess->setProgram(Utils::ForeignApps::pythonInfo().executablePath.data());
#ifdef Q_OS_UNIX
m_searchProcess->setUnixProcessParameters(QProcess::UnixProcessFlag::CloseFileDescriptors);
#endif