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:
Steinar Foss
2019-11-13 15:03:47 +01:00
parent f3701c3f93
commit d348f170f2
6 changed files with 84 additions and 9 deletions

View File

@@ -60,8 +60,12 @@ public:
private:
std::shared_ptr<PythonInterp> interp;
};
std::unique_ptr<Python> PythonInstance();
}
#endif