| 29 | } |
| 30 | |
| 31 | bool Utils::createVenv(const QString &python, const QString &venvPath) |
| 32 | { |
| 33 | if (checkVenvValid(venvPath)) |
| 34 | return true; |
| 35 | |
| 36 | QProcess process; |
| 37 | QStringList args { "-m", "venv", venvPath }; |
| 38 | process.setProgram(python); |
| 39 | process.setArguments(args); |
| 40 | process.start(); |
| 41 | process.waitForFinished(); |
| 42 | |
| 43 | return process.exitCode() == 0; |
| 44 | } |
| 45 | |
| 46 | QString Utils::pythonVersion(const QString &python) |
| 47 | { |
nothing calls this directly
no test coverage detected