mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-01 18:49:47 +02:00
Exit if Python executable not found
This commit is contained in:
parent
5729d35c48
commit
936c3beea0
1 changed files with 2 additions and 0 deletions
|
@ -18,7 +18,9 @@ PythonInterface::PythonInterface() {
|
||||||
QString _pythonPath = QProcessEnvironment::systemEnvironment().value("PYTHON_PATH");
|
QString _pythonPath = QProcessEnvironment::systemEnvironment().value("PYTHON_PATH");
|
||||||
if (!QFile::exists(_pythonPath + "/" + _pythonExe)) {
|
if (!QFile::exists(_pythonPath + "/" + _pythonExe)) {
|
||||||
QMessageBox::critical(0, _pythonExe, QString("Python executable not found in ") + _pythonPath);
|
QMessageBox::critical(0, _pythonExe, QString("Python executable not found in ") + _pythonPath);
|
||||||
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
_pythonCommand = _pythonPath + "/" + _pythonExe;
|
_pythonCommand = _pythonPath + "/" + _pythonExe;
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::critical(0, "PYTHON_PATH not defined",
|
QMessageBox::critical(0, "PYTHON_PATH not defined",
|
||||||
|
|
Loading…
Reference in a new issue