854 |
weechat_python_unload_all (plugin); |
weechat_python_unload_all (plugin); |
855 |
|
|
856 |
/* free Python interpreter */ |
/* free Python interpreter */ |
857 |
/*Py_Finalize (); |
if (python_mainThreadState != NULL) |
858 |
|
{ |
859 |
|
PyThreadState_Swap (python_mainThreadState); |
860 |
|
python_mainThreadState = NULL; |
861 |
|
} |
862 |
|
Py_Finalize (); |
863 |
if (Py_IsInitialized () != 0) |
if (Py_IsInitialized () != 0) |
864 |
python_plugin->printf_server (python_plugin, |
python_plugin->printf_server (python_plugin, |
865 |
"Python error: unable to free interpreter"); |
"Python error: unable to free interpreter"); |
866 |
|
|
867 |
python_plugin->printf_server (python_plugin, |
python_plugin->printf_server (python_plugin, |
868 |
"Python plugin ended");*/ |
"Python plugin ended"); |
869 |
} |
} |