summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-11 15:34:14 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-11 15:34:14 +0200
commit0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7 (patch)
tree75aa6fc496d9cf82398c9f12e026f829701b8224 /src
parent67a5695ed2b709cf934763ef34c1d239542fedf4 (diff)
downloadpython-dmidecode-0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7.tar.gz
python-dmidecode-0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7.tar.xz
python-dmidecode-0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7.zip
Pick the version info from version.h
Diffstat (limited to 'src')
-rw-r--r--src/dmidecodemodule.c3
-rw-r--r--src/xmlpythonizer.c3
2 files changed, 4 insertions, 2 deletions
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 <mcheck.h>
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);
}