]> granicus.if.org Git - python/commitdiff
Get DLL version from a variable.
authorGuido van Rossum <guido@python.org>
Mon, 29 Sep 1997 23:34:23 +0000 (23:34 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Sep 1997 23:34:23 +0000 (23:34 +0000)
Python/sysmodule.c

index 96f10f3c01d08fd43b6f3a1abcb2d1ec41098fdc..59b7aab13b62f42b7114b8bd9f3014fcb7dbed92 100644 (file)
@@ -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())