adding python src and renamin _ext
This commit is contained in:
@ -70,7 +70,7 @@ static PyMethodDef creader_methods[] = {
|
||||
// Module defenition
|
||||
static struct PyModuleDef creader_def = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"creader",
|
||||
"_creader",
|
||||
module_docstring,
|
||||
-1,
|
||||
creader_methods, // m_methods
|
||||
@ -81,7 +81,7 @@ static struct PyModuleDef creader_def = {
|
||||
};
|
||||
|
||||
// Initialize module and add classes
|
||||
PyMODINIT_FUNC PyInit_creader(void) {
|
||||
PyMODINIT_FUNC PyInit__creader(void) {
|
||||
|
||||
PyObject *m = PyModule_Create(&creader_def);
|
||||
if (m == NULL)
|
||||
|
Reference in New Issue
Block a user