Commit 8397eb67 authored by Berk Geveci's avatar Berk Geveci

Module name between Unix and Windows got switched by mistake.

parent 46aa080e
...@@ -204,9 +204,9 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName, ...@@ -204,9 +204,9 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
/* module init function */ /* module init function */
fprintf(fout," PyObject *m, *d, *c;\n\n"); fprintf(fout," PyObject *m, *d, *c;\n\n");
#ifdef _WIN32 #ifdef _WIN32
fprintf(fout," static char modulename[] = \"lib%s\";\n",kitName);
#else
fprintf(fout," static char modulename[] = \"%s\";\n",kitName); fprintf(fout," static char modulename[] = \"%s\";\n",kitName);
#else
fprintf(fout," static char modulename[] = \"lib%s\";\n",kitName);
#endif #endif
fprintf(fout," m = Py_InitModule(modulename, Py%s_ClassMethods);\n", fprintf(fout," m = Py_InitModule(modulename, Py%s_ClassMethods);\n",
kitName); kitName);
......
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