| 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 | { |
no test coverage detected