https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: f4ea1751881325f3371fb919b17b6885ac762b2a authored by wenqing on 04 March 2021, 08:35:18 UTC
Merge branch 'THM_fixing' into 'master'
Tip revision: f4ea175
ogs_embedded_python.h
/**
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include <pybind11/embed.h>
#include "BaseLib/ExportSymbol.h"

namespace ApplicationsLib
{
/// Sets up an embedded Python interpreter and makes sure that the OpenGeoSys
/// Python module is not removed by the linker.
OGS_EXPORT_SYMBOL pybind11::scoped_interpreter setupEmbeddedPython();

}  // namespace ApplicationsLib
back to top