mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Merge latest msvc fixes from stable branch
This commit is contained in:
parent
8ec1621334
commit
4805690dbe
6 changed files with 67 additions and 55 deletions
|
@ -120,8 +120,12 @@ bool SearchEngine::addPythonPathToEnv() {
|
|||
}
|
||||
path_envar = python_path+";"+path_envar;
|
||||
qDebug("New PATH envvar is: %s", qPrintable(path_envar));
|
||||
#ifdef MINGW
|
||||
QString envar = "PATH="+path_envar;
|
||||
putenv(envar.toLocal8Bit().data());
|
||||
#else
|
||||
SetEnvironmentVariableA("PATH", path_envar.toLocal8Bit().constData());
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue