MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / search

Function search

src/common/util/environment.cpp:64–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64Program 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
94QProcessEnvironment get(Category category, Kit kit, const Version &version)
95{

Callers 5

findMethod · 0.85
findNextMethod · 0.85
findPreviousMethod · 0.85
searchMethod · 0.85
getFunction · 0.85

Calls 5

numberClass · 0.85
has_valueMethod · 0.80
completionFunction · 0.70
QStringClass · 0.70
valueMethod · 0.45

Tested by

no test coverage detected