17 static bool initialised() {
return m_instance != NULL; };
19 void execute(
const std::string& python);
20 PyObject *call(
const std::string& name,
const std::string& fmt, ...);
21 PyObject *call(PyObject *module,
const std::string& name,
const std::string& fmt, ...);
28 void logException(
const std::string& name);
static PythonRuntime * getPythonRuntime()
Get PythonRuntime singleton instance for the process.
Definition: pyruntime.cpp:28
void execute(const std::string &python)
Execute simple Python script passed as a string.
Definition: pyruntime.cpp:77
PyObject * importModule(const std::string &name)
Import a Python module.
Definition: pyruntime.cpp:316
static void shutdown()
Shutdown an instance of a Python runtime if one has been started.
Definition: pyruntime.cpp:336
Definition: pyruntime.h:14