From 5d1716c11d59a98bef31e11f26c35c3b6019c787 Mon Sep 17 00:00:00 2001 From: lexus2k Date: Thu, 25 Jul 2024 23:28:05 +0400 Subject: [PATCH] Fix for python module: #46 --- python/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/main.cpp b/python/main.cpp index 86168758..8ac11240 100644 --- a/python/main.cpp +++ b/python/main.cpp @@ -48,7 +48,7 @@ static PyMethodDef tinyproto_methods[] = {{"pants", pants, METH_VARARGS, "Return static struct PyModuleDef tinyproto_definition = {PyModuleDef_HEAD_INIT, "tinyproto_", "A Python tiny protocol module", -1, tinyproto_methods}; -PyMODINIT_FUNC PyInit_tinyproto_(void) +PyMODINIT_FUNC PyInit_tinyproto(void) { Py_Initialize(); PyObject *m = PyModule_Create(&tinyproto_definition);