Skip to content
Snippets Groups Projects
Commit 5549b8fb authored by Marco Biasini's avatar Marco Biasini
Browse files

added ost version information to python

parent 822315ea
Branches
Tags
No related merge requests found
......@@ -23,6 +23,7 @@
#include <ost/base.hh>
#include <ost/platform.hh>
#include <ost/message.hh>
#include <ost/version.hh>
using namespace boost::python;
......@@ -44,6 +45,11 @@ BOOST_PYTHON_MODULE(_base)
def("SetPrefixPath", &ost::SetPrefixPath);
def("GetPrefixPath", &ost::GetPrefixPath);
def("GetSharedDataPath", &ost::GetSharedDataPath);
scope().attr("VERSION")=OST_VERSION_STRING;
scope().attr("VERSION_MAJOR")=OST_VERSION_MAJOR;
scope().attr("VERSION_MINOR")=OST_VERSION_MINOR;
scope().attr("VERSION_PATCH")=OST_VERSION_PATCH;
export_Logger();
export_Range();
export_Units();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment