Kaydet (Commit) 6c1e5f20 authored tarafından Guido van Rossum's avatar Guido van Rossum

Get DLL version from a variable.

üst 4f3bf1e3
...@@ -54,6 +54,8 @@ Data members: ...@@ -54,6 +54,8 @@ Data members:
#ifdef MS_COREDLL #ifdef MS_COREDLL
extern void *PyWin_DLLhModule; extern void *PyWin_DLLhModule;
/* A string loaded from the DLL at startup: */
extern const char *PyWin_DLLVersionString;
#endif #endif
PyObject * PyObject *
...@@ -319,7 +321,7 @@ _PySys_Init() ...@@ -319,7 +321,7 @@ _PySys_Init()
v = PyInt_FromLong((int)PyWin_DLLhModule)); v = PyInt_FromLong((int)PyWin_DLLhModule));
Py_XDECREF(v); Py_XDECREF(v);
PyDict_SetItemString(sysdict, "winver", PyDict_SetItemString(sysdict, "winver",
v = PyString_FromString(MS_DLL_ID)); v = PyString_FromString(PyWin_DLLVersionString));
Py_XDECREF(v); Py_XDECREF(v);
#endif #endif
if (PyErr_Occurred()) if (PyErr_Occurred())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment