Use putenv on Windows too

This commit is contained in:
Christophe Dumez
2010-06-23 12:44:23 +00:00
parent 2f4f06ca8b
commit a2067af4ea
3 changed files with 3 additions and 19 deletions

View File

@@ -120,12 +120,8 @@ 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;