Showing the changes to tools/nitpick/src/PythonInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -16,13 +16,13 @@ · 15 unmodified lines | |||
| 16 | PythonInterface::PythonInterface() { | 16 | PythonInterface::PythonInterface() { |
| 17 | #ifdef Q_OS_WIN | 17 | #ifdef Q_OS_WIN |
| 18 | if (QProcessEnvironment::systemEnvironment().contains("PYTHON_PATH")) { | 18 | if (QProcessEnvironment::systemEnvironment().contains("PYTHON_PATH")) { |
| 19 | QString _pythonPath = QProcessEnvironment::systemEnvironment().value("PYTHON_PATH"); | 19 | QString pythonPath = QProcessEnvironment::systemEnvironment().value("PYTHON_PATH"); |
| 20 | if (!QFile::exists(_pythonPath + "/" + _pythonExe)) { | 20 | if (!QFile::exists(pythonPath + "/" + _pythonExe)) { |
| 21 | QMessageBox::critical(0, _pythonExe, QString("Python executable not found in ") + _pythonPath); | 21 | QMessageBox::critical(0, _pythonExe, QString("Python executable not found in ") + pythonPath); |
| 22 | exit(-1); | 22 | exit(-1); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | _pythonCommand = _pythonPath + "/" + _pythonExe; | 25 | _pythonCommand = pythonPath + "/" + _pythonExe; |
| 26 | } else { | 26 | } else { |
| 27 | QMessageBox::critical(0, "PYTHON_PATH not defined", | 27 | QMessageBox::critical(0, "PYTHON_PATH not defined", |
| 28 | "Please set PYTHON_PATH to directory containing the Python executable"); | 28 | "Please set PYTHON_PATH to directory containing the Python executable"); |