diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-09-18 07:08:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-09-18 07:08:35 (GMT) |
commit | 7abda358d11810e464f2bf51f8333836ddc17e90 (patch) | |
tree | 37a4b9dda883de13f729ed60eab11b1a4e3251ad /plugins/pychrysalide/pychrysa.c | |
parent | 264883a204ff89fcf53bb9c07bac1248096af0ef (diff) |
Updated the API used to load binary contents.
Diffstat (limited to 'plugins/pychrysalide/pychrysa.c')
-rw-r--r-- | plugins/pychrysalide/pychrysa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/pychrysalide/pychrysa.c b/plugins/pychrysalide/pychrysa.c index 8c93448..dd6f576 100644 --- a/plugins/pychrysalide/pychrysa.c +++ b/plugins/pychrysalide/pychrysa.c @@ -579,12 +579,16 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin) Py_Initialize(); + PyEval_InitThreads(); + PySys_SetArgv(0, (wchar_t *[]) { NULL }); _chrysalide_module = PyImport_ImportModule("pychrysalide"); result = load_python_plugins(plugin); + PyEval_ReleaseLock(); + cpi_done: return result; |