X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=srd.c;h=2947ca8dd14bcda6073b41c4ee7e0c0a2d86f297;hb=6aa03e3aeb9054122e52016c3344927d5c0f02de;hp=7b18c9a4dfa2a6ded230005f452a611f0094c4bb;hpb=40c6ac1d3fbded276dcbff23e8bc099896ab2fb5;p=libsigrokdecode.git diff --git a/srd.c b/srd.c index 7b18c9a..2947ca8 100644 --- a/srd.c +++ b/srd.c @@ -157,7 +157,7 @@ SRD_API int srd_init(const char *path) PyImport_AppendInittab("sigrokdecode", PyInit_sigrokdecode); /* Initialize the Python interpreter. */ - Py_Initialize(); + Py_InitializeEx(0); /* Locations relative to the XDG system data directories. */ sys_datadirs = g_get_system_data_dirs();