diff --git a/moo/moopython/codegen/codegen.py b/moo/moopython/codegen/codegen.py old mode 100755 new mode 100644 index 229fff23..0451c0ea --- a/moo/moopython/codegen/codegen.py +++ b/moo/moopython/codegen/codegen.py @@ -1458,6 +1458,11 @@ typedef intobjargproc ssizeobjargproc; 'void\n' + self.prefix + '_add_constants(PyObject *module, const gchar *strip_prefix)\n{\n') + self.fp.write( + '#ifdef VERSION\n' + ' PyModule_AddStringConstant(module, "__version__", VERSION);\n' + '#endif\n') + for enum in self.get_enums(): if enum.typecode is None: for nick, value in enum.values: