1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

python: call empty eval workaround before auto-load of scripts (issue #2046, issue #2126)

This should definitely fix the crash with Python 3.12, even when scripts are
auto-loaded (the previous fix was working only when the scripts are loaded
manually).
This commit is contained in:
Sébastien Helleu
2024-06-26 18:44:35 +02:00
parent 3d3d8f2ea7
commit 85c7494dc7
10 changed files with 33 additions and 6 deletions
+1
View File
@@ -955,6 +955,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
js_data.callback_signal_debug_dump = &weechat_js_signal_debug_dump_cb;
js_data.callback_signal_script_action = &weechat_js_signal_script_action_cb;
js_data.callback_load_file = &weechat_js_load_cb;
js_data.init_before_autoload = NULL;
js_data.unload_all = &weechat_js_unload_all;
old_js_quiet = js_quiet;