From b0badc3759066663c3f50f3691c9a692b78f4e40 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 12 Aug 2014 17:19:47 +0200 Subject: [PATCH] Add __version__ attribute to the linphone Python module. --- tools/python/apixml2python/linphone_module.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/python/apixml2python/linphone_module.mustache b/tools/python/apixml2python/linphone_module.mustache index 9c1b197f6..488d239b1 100644 --- a/tools/python/apixml2python/linphone_module.mustache +++ b/tools/python/apixml2python/linphone_module.mustache @@ -23,6 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include +#include "gitversion.h" + #ifdef WIN32 #include #endif @@ -246,6 +248,7 @@ PyMODINIT_FUNC initlinphone(void) { m = Py_InitModule3("linphone", pylinphone_ModuleMethods, "Python module giving access to the Linphone library."); if (m == NULL) return; + if (PyModule_AddStringConstant(m, "__version__", LINPHONE_GIT_REVISION) < 0) return; {{#enums}} menum = Py_InitModule3("{{enum_name}}", pylinphone_{{enum_name}}_ModuleMethods, "{{{enum_doc}}}");