plugins: python-renderer: add finalize function

This commit is contained in:
Mario Hüttel 2019-11-16 22:53:10 +01:00
parent cf2947d2d5
commit 02720ec37b

View File

@ -16,11 +16,14 @@ int FUNC_DECL(EXTERNAL_LIBRARY_RENDER_FUNCTION)(struct gds_cell *toplevel, GList
int FUNC_DECL(EXTERNAL_LIBRARY_INIT_FUNCTION)(const char *params, const char *version)
{
PyObject *p_module_name;
printf("Init with params: %s\ngds-render version: %s\n", params, version);
Py_Initialize();
return 0;
}
int FUNC_DECL(EXTERNAL_LIBRARY_FINALIZE_FUNCTION)(void)
{
Py_Finalize();
return 0;
}