X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=srd.c;fp=srd.c;h=2947ca8dd14bcda6073b41c4ee7e0c0a2d86f297;hp=7b18c9a4dfa2a6ded230005f452a611f0094c4bb;hb=45883c6b54839988850d5fb3d6fdbedab0011ced;hpb=502acfc2c71a2bbc97d4d7597150cd479bead1ee 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();