mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +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");
|
||||
if (!QFile::exists(_pythonPath + "/" + _pythonExe)) {
|
||||
QMessageBox::critical(0, _pythonExe, QString("Python executable not found in ") + _pythonPath);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
_pythonCommand = _pythonPath + "/" + _pythonExe;
|
||||
} else {
|
||||
QMessageBox::critical(0, "PYTHON_PATH not defined",
|
||||
|
|
Loading…
Reference in a new issue