Code

include PACKAGE_VERSION as version number for python module to fix #236
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 7 Aug 2009 06:04:59 +0000 (06:04 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 7 Aug 2009 06:04:59 +0000 (06:04 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1879 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/bindings/python/rrdtoolmodule.c

index 8eba8f928b7e31167406da0e19e0152a85916b58..a2647b50f788f908e44571625581e617ce3a6ef3 100644 (file)
@@ -37,7 +37,9 @@
 # define UNUSED(x) x
 #endif
 
-static const char *__version__ = "$Revision: 1.14 $";
+
+#include "../../rrd_config.h"
+static const char *__version__ = PACKAGE_VERSION;
 
 #include "Python.h"
 #include "../../src/rrd_tool.h"