------------------------------------------------------------------------------
| 155 | |
| 156 | //------------------------------------------------------------------------------ |
| 157 | std::string vtkPSystemTools::GetProgramPath(const std::string& path) |
| 158 | { |
| 159 | vtkMultiProcessController* controller = vtkMultiProcessController::GetGlobalController(); |
| 160 | std::string programPath; |
| 161 | if (controller->GetLocalProcessId() == 0) |
| 162 | { |
| 163 | programPath = vtksys::SystemTools::GetProgramPath(path); |
| 164 | } |
| 165 | vtkPSystemTools::BroadcastString(programPath, 0); |
| 166 | |
| 167 | return programPath; |
| 168 | } |
| 169 | |
| 170 | //------------------------------------------------------------------------------ |
| 171 | void vtkPSystemTools::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected