MCPcopy Create free account
hub / github.com/MITK/MITK / RunPythonCommand

Function RunPythonCommand

Modules/Python/test/mitkPythonBindingsTest.cpp:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 int RunPythonCommand(const fs::path& pythonExecutable, const std::vector<std::string>& arguments)
31 {
32 std::ostringstream command;
33
34#if defined(_WIN32)
35 command << "if 1==1 ";
36#endif
37
38 command << QuotePath(pythonExecutable);
39
40 for (const auto& argument : arguments)
41 command << ' ' << argument;
42
43 MITK_INFO << "Running command: " << command.str();
44 return std::system(command.str().c_str());
45 }
46
47 void EnsurePytestInstalled()
48 {

Callers 1

EnsurePytestInstalledFunction · 0.85

Calls 1

QuotePathFunction · 0.85

Tested by

no test coverage detected