| 62 | } |
| 63 | |
| 64 | Program search(Category category, Kit kit, const Version &version) |
| 65 | { |
| 66 | qInfo() << __FUNCTION__; |
| 67 | Program ret; |
| 68 | if (category == User) { |
| 69 | if (kit == Python) { |
| 70 | Version executeVersion = completion(category, kit, version); |
| 71 | if (executeVersion.major.value() == 3) { |
| 72 | QString program = "python"; |
| 73 | if (executeVersion.major) { |
| 74 | program + QString::number(executeVersion.major.value()); |
| 75 | } |
| 76 | |
| 77 | if (executeVersion.major.has_value() && executeVersion.minor.has_value()) { |
| 78 | ret.pkgsPath = QDir::homePath() + QDir::separator() |
| 79 | + ".local" + QDir::separator() |
| 80 | + "lib" + QDir::separator() |
| 81 | + QString("python") + QString::number(executeVersion.major.value()) |
| 82 | + "." |
| 83 | + QString::number(executeVersion.minor.value()) |
| 84 | + QDir::separator() |
| 85 | + "site-packages"; |
| 86 | ret.binsPath = QDir::homePath() + "/.local/bin"; |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | return ret; |
| 92 | } |
| 93 | |
| 94 | QProcessEnvironment get(Category category, Kit kit, const Version &version) |
| 95 | { |
no test coverage detected