Skip to content

Commit

Permalink
Add Py_Initialize() for all implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Jan 12, 2025
1 parent 936b3c2 commit 4f37207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions caio/linux_aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,8 @@ static PyModuleDef linux_aio_module = {


PyMODINIT_FUNC PyInit_linux_aio(void) {
Py_Initialize();

struct utsname uname_data;

if (uname(&uname_data)) {
Expand Down
2 changes: 1 addition & 1 deletion caio/thread_aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ static PyModuleDef thread_aio_module = {


PyMODINIT_FUNC PyInit_thread_aio(void) {
PyEval_InitThreads();
Py_Initialize();

PyObject *m;

Expand Down

0 comments on commit 4f37207

Please sign in to comment.