mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Since Apple made difficult for users to set PATH and /usr/bin/python is almost unusable, I simply add /usr/local/bin before default PATH to pick up Homebrew Python.
This commit is contained in:
parent
90bbe3379d
commit
55916df97d
2 changed files with 13 additions and 1 deletions
|
@ -1476,7 +1476,8 @@ void MainWindow::on_actionSearchWidget_triggered()
|
|||
|
||||
// Check if python is already in PATH
|
||||
if (pythonVersion > 0)
|
||||
Logger::instance()->addMessage(tr("Python found in %1").arg("PATH"), Log::INFO); // Prevent translators from messing with PATH
|
||||
// Prevent translators from messing with PATH
|
||||
Logger::instance()->addMessage(tr("Python found in %1: %2", "Python found in PATH: /usr/local/bin:/usr/bin:/etc/bin").arg("PATH").arg(qgetenv("PATH").constData()), Log::INFO);
|
||||
#ifdef Q_OS_WIN
|
||||
else if (addPythonPathToEnv())
|
||||
pythonVersion = Utils::Misc::pythonVersion();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue