35 #ifndef __PythonSingleton_h 36 #define __PythonSingleton_h 69 #ifndef __gVirtualXRayConfig_h 95 m_p_instance->initPython();
97 return *m_p_instance.get();
103 #ifdef HAS_PythonLibs 104 PyObject* getModule();
113 void releasePython();
119 static std::unique_ptr<PythonSingleton> m_p_instance;
123 std::string m_python_interpretor;
125 #ifdef HAS_PythonLibs 126 PyObject* m_p_global;
127 PyObject* m_p_module;
141 #endif // __PythonSingleton_h
static PythonSingleton & getInstance()
Singleton to handle the initialisation and release of Python.