12#ifndef RTCTK_COMPONENTFRAMEWORK_PYTHONINTERPRETER_HPP
13#define RTCTK_COMPONENTFRAMEWORK_PYTHONINTERPRETER_HPP
18#include <pybind11/embed.h>
19#include <pybind11/pybind11.h>
91 const char*
const* argv =
nullptr,
92 bool add_program_dir_to_path =
true);
108 const char*
const* argv =
nullptr,
109 bool add_program_dir_to_path =
true);
121 pybind11::scoped_interpreter m_interpreter;
122 pybind11::module m_threading_module;
123 pybind11::module m_vector_module;
124 pybind11::module m_matrix_module;
125 pybind11::gil_scoped_release m_release_gil;
SetupFailure(const std::string &message)
Definition pythonInterpreter.cpp:18
PythonInterpreter(const PythonInterpreter &)=delete
PythonInterpreter(bool init_signal_handlers=true, int argc=0, const char *const *argv=nullptr, bool add_program_dir_to_path=true)
Initialises the embedded Python interpreter.
Definition pythonInterpreter.cpp:22
PythonInterpreter & operator=(PythonInterpreter &&)=delete
~PythonInterpreter()=default
PythonInterpreter(PythonInterpreter &&)=delete
PythonInterpreter & operator=(const PythonInterpreter &)=delete
RtctkException() noexcept
Definition exceptions.cpp:112
Project-wide configuration header.
#define RTCTK_LOCAL
Helper to hide a class or function from the public symbol table.
Definition config.hpp:59
#define RTCTK_API
Helper to indicate that a class or function must be exported in the public symbol table.
Definition config.hpp:32
Provides macros and utilities for exception handling.
Definition commandReplier.cpp:21