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

Method PythonContext

Modules/Python/src/mitkPythonContext.cpp:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107};
108
109mitk::PythonContext::PythonContext(const std::string& venvName)
110{
111 if (!venvName.empty())
112 ActivateVirtualEnv(venvName);
113
114 if (!Py_IsInitialized())
115 py::initialize_interpreter();
116
117 m_Impl = std::make_unique<Impl>();
118}
119
120void mitk::PythonContext::Activate(bool importBindings)
121{

Callers

nothing calls this directly

Calls 2

ActivateVirtualEnvFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected