Commit 6b064d35 authored by Davis King's avatar Davis King

Made the python __version__ field come from the DLIB_VERSION macro set by

CMake.
parent fcf80e1d
......@@ -29,7 +29,10 @@ BOOST_PYTHON_MODULE(dlib)
// since it is full of huge amounts of template clutter.
boost::python::docstring_options options(true,true,false);
boost::python::scope().attr("__version__") = "18.18";
#define DLIB_QUOTE_STRING(x) DLIB_QUOTE_STRING2(x)
#define DLIB_QUOTE_STRING2(x) #x
boost::python::scope().attr("__version__") = DLIB_QUOTE_STRING(DLIB_VERSION);
bind_matrix();
bind_vector();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment