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

Method createVenv

src/plugins/python/utils/utils.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool Utils::createVenv(const QString &python, const QString &venvPath)
32{
33 if (checkVenvValid(venvPath))
34 return true;
35
36 QProcess process;
37 QStringList args { "-m", "venv", venvPath };
38 process.setProgram(python);
39 process.setArguments(args);
40 process.start();
41 process.waitForFinished();
42
43 return process.exitCode() == 0;
44}
45
46QString Utils::pythonVersion(const QString &python)
47{

Callers

nothing calls this directly

Calls 3

setProgramMethod · 0.45
setArgumentsMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected