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

Method checkCondaInstalled

src/plugins/chat/chatmanager.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void ChatManager::checkCondaInstalled()
68{
69 if (condaInstalled)
70 return;
71 QProcess process;
72 QStringList arguments;
73 arguments << "env"
74 << "list";
75
76 process.start(condaRootPath() + "/miniforge/condabin/conda", arguments);
77 process.waitForFinished();
78
79 QString output = process.readAll();
80 condaInstalled = output.contains("deepin_unioncode_env");
81}
82
83bool ChatManager::condaHasInstalled()
84{

Callers 1

startMethod · 0.80

Calls 3

readAllMethod · 0.80
startMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected