----------------------------------------------------------------------------
| 133 | |
| 134 | //---------------------------------------------------------------------------- |
| 135 | bool vtkInitializationHelper::Initialize(const char* executable, int type) |
| 136 | { |
| 137 | if (!executable || !executable[0]) |
| 138 | { |
| 139 | vtkLogF(ERROR, "Executable name must be specified!"); |
| 140 | return false; |
| 141 | } |
| 142 | |
| 143 | std::vector<char*> argv; |
| 144 | argv.push_back(vtksys::SystemTools::DuplicateString(executable)); |
| 145 | argv.push_back(nullptr); |
| 146 | return vtkInitializationHelper::Initialize(static_cast<int>(argv.size()) - 1, argv.data(), type); |
| 147 | } |
| 148 | |
| 149 | //---------------------------------------------------------------------------- |
| 150 | bool vtkInitializationHelper::Initialize(vtkStringList* slist, int type) |