Browse Source

Module name between Unix and Windows got switched by mistake.

Berk Geveci 24 years ago
parent
commit
8397eb6778
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmVTKWrapPythonCommand.cxx

+ 2 - 2
Source/cmVTKWrapPythonCommand.cxx

@@ -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);