| 67 | } |
| 68 | |
| 69 | QString CraftRuntime::findPython() |
| 70 | { |
| 71 | // Craft requires Python 3.6+, not any "python3", but |
| 72 | // - If the user set up Craft already, there is a high probability that |
| 73 | // "python3" is a correct one |
| 74 | // - We are running only CraftSetupHelper.py, not the whole Craft, so |
| 75 | // the 3.6+ requirement might be not relevant for this case. |
| 76 | // So just search for "python3" and hope for the best. |
| 77 | return QStandardPaths::findExecutable(QStringLiteral("python3")); |
| 78 | } |
| 79 | |
| 80 | void CraftRuntime::setEnabled(bool enabled) |
| 81 | { |
nothing calls this directly
no test coverage detected