diff options
author | Guido van Rossum <guido@python.org> | 1997-09-29 23:34:23 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-29 23:34:23 +0000 |
commit | 0042fb73773485a7358bc79673e47b4c63c73388 (patch) | |
tree | 8d357e1dd0439d0fb9f4947a8324a5c683b26322 /Python/sysmodule.c | |
parent | 11b11e6f0da00480223dd68f7c746de69ebd2f1a (diff) | |
download | cpython-0042fb73773485a7358bc79673e47b4c63c73388.tar.gz |
Get DLL version from a variable.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 96f10f3c01..59b7aab13b 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -54,6 +54,8 @@ Data members: #ifdef MS_COREDLL extern void *PyWin_DLLhModule; +/* A string loaded from the DLL at startup: */ +extern const char *PyWin_DLLVersionString; #endif PyObject * @@ -319,7 +321,7 @@ _PySys_Init() v = PyInt_FromLong((int)PyWin_DLLhModule)); Py_XDECREF(v); PyDict_SetItemString(sysdict, "winver", - v = PyString_FromString(MS_DLL_ID)); + v = PyString_FromString(PyWin_DLLVersionString)); Py_XDECREF(v); #endif if (PyErr_Occurred()) |