| 244 | } |
| 245 | |
| 246 | bool mitk::PythonContext::HasVariable(const std::string &varName) |
| 247 | { |
| 248 | py::gil_scoped_acquire gil; |
| 249 | |
| 250 | return m_Impl->Dictionary.contains(varName); |
| 251 | } |
| 252 | |
| 253 | std::optional<bool> mitk::PythonContext::GetVariableAsBool(const std::string& varName) |
| 254 | { |