PYBIND11_EMBEDDED_MODULE replaced by OPM_EMBEDDED_MODULE.
python.cpp: PythonInterp created within contr. brackets. PYBIND11_EMBEDDED_MODULE commented out. opm_python: added file Embed.hpp. introduced macro OPM_EMBEDDED_MODULE. added opm_embedded_module. using opm_embedded_module. opm_embedded_module: commented out PyInstance check. added namespace Opm::embed. Embed.hpp -> EmbedModule.hpp. Python.cpp: added exception if PyIsinstance. parserstate: python is a unique_ptr. Parser.cpp: exception if no Opm::python obj.
This commit is contained in:
@@ -60,8 +60,12 @@ public:
|
||||
private:
|
||||
std::shared_ptr<PythonInterp> interp;
|
||||
};
|
||||
|
||||
std::unique_ptr<Python> PythonInstance();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user