Commit fa39e518 authored by Davis King's avatar Davis King

Added a __time_compiled__ field to the python API.

parent 1578e277
......@@ -3,6 +3,7 @@
#include <pybind11/pybind11.h>
#include <dlib/simd.h>
#include <string>
namespace py = pybind11;
......@@ -38,6 +39,7 @@ PYBIND11_MODULE(dlib, m)
#define DLIB_QUOTE_STRING(x) DLIB_QUOTE_STRING2(x)
#define DLIB_QUOTE_STRING2(x) #x
m.attr("__version__") = DLIB_QUOTE_STRING(DLIB_VERSION);
m.attr("__time_compiled__") = std::string(__DATE__) + " " + std::string(__TIME__);
#ifdef DLIB_USE_CUDA
m.attr("DLIB_USE_CUDA") = true;
......
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