Module name between Unix and Windows got switched by mistake.

This commit is contained in:
Berk Geveci 2001-06-05 17:46:12 -04:00
parent 46aa080edc
commit 8397eb6778
1 changed files with 2 additions and 2 deletions

View File

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