From 0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 11 Jun 2009 15:34:14 +0200 Subject: Pick the version info from version.h --- src/dmidecodemodule.c | 3 ++- src/xmlpythonizer.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dmidecodemodule.c b/src/dmidecodemodule.c index 7cdbd26..0d92612 100644 --- a/src/dmidecodemodule.c +++ b/src/dmidecodemodule.c @@ -48,6 +48,7 @@ #include "dmidecodemodule.h" #include "dmixml.h" #include "dmierror.h" +#include "version.h" #include static void init(options *opt) @@ -712,7 +713,7 @@ PyMODINIT_FUNC initdmidecodemod(void) module = Py_InitModule3((char *)"dmidecodemod", DMIDataMethods, "Python extension module for dmidecode"); - version = PyString_FromString("3.10.6"); + version = PyString_FromString(VERSION); Py_INCREF(version); PyModule_AddObject(module, "version", version); diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c index 68c29c2..f6dfe15 100644 --- a/src/xmlpythonizer.c +++ b/src/xmlpythonizer.c @@ -83,6 +83,7 @@ #include "dmixml.h" #include "dmierror.h" #include "xmlpythonizer.h" +#include "version.h" /** @@ -1172,7 +1173,7 @@ PyMODINIT_FUNC initxmlpythonizer(void) { Py_InitModule3((char *)"xmlpythonizer", DemoMethods, "XML to Python Proof-of-Concept Python Module"); - PyObject *version = PyString_FromString("3.10.6"); + PyObject *version = PyString_FromString(VERSION); Py_INCREF(version); PyModule_AddObject(module, "version", version); } -- cgit