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

Method deleteVenv

src/pythoninterfaces/abstractpythoninterface.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void AbstractPythonInterface::deleteVenv()
228{
229 QDir pluginDir(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation));
230 const QString binaryPath = getVenvPath();
231 if (pluginDir.cd(binaryPath)) {
232 if (pluginDir.dirName().contains(QLatin1String("venv")) && pluginDir.absolutePath().contains(QLatin1String("kdenlive"))) {
233 pluginDir.removeRecursively();
234 }
235 setStatus(NotInstalled);
236 calculateVenvSize();
237 Q_EMIT venvSetupChanged();
238 }
239}
240
241AbstractPythonInterface::PythonExec AbstractPythonInterface::venvPythonExecs(bool checkPip)
242{

Callers 2

doDeleteSamVenvMethod · 0.80
doDeleteWrVenvMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected