MCPcopy Create free account
hub / github.com/KDE/kdenlive / checkSetup

Method checkSetup

src/pythoninterfaces/abstractpythoninterface.cpp:426–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426bool AbstractPythonInterface::checkSetup(bool requestInstall, bool *newInstall)
427{
428 PythonExec exes = venvPythonExecs(true);
429 qDebug() << "::::: FOUND PYTHON EXECS: " << exes.python << exes.pip;
430 if (!exes.python.isEmpty() && !exes.pip.isEmpty() && std::find(m_scripts.cbegin(), m_scripts.cend(), QString()) == m_scripts.cend()) {
431 qDebug() << "//// SCRIPT VALUES: " << m_scripts.values();
432 if (m_installStatus == Unknown) {
433 setStatus(Installed);
434 }
435 return true;
436 }
437 if (!checkVenv(false, requestInstall)) {
438 return false;
439 }
440 if (requestInstall) {
441 *newInstall = true;
442 }
443
444 QMapIterator<QString, QString> i(m_scripts);
445 while (i.hasNext()) {
446 i.next();
447 if (i.value().isEmpty()) {
448 return false;
449 }
450 }
451 return true;
452}
453
454bool AbstractPythonInterface::setupVenv()
455{

Callers 2

startRecognitionMethod · 0.80
SpeechDialogMethod · 0.80

Calls 3

isEmptyMethod · 0.45
nextMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected