about summary refs log tree commit diff stats
path: root/src/plugins/python_plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python_plugins.c')
-rw-r--r--src/plugins/python_plugins.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/python_plugins.c b/src/plugins/python_plugins.c
index f78dc598..588bd0ef 100644
--- a/src/plugins/python_plugins.c
+++ b/src/plugins/python_plugins.c
@@ -42,18 +42,18 @@
 #include "plugins/python_plugins.h"
 #include "ui/ui.h"
 
-//static PyThreadState *thread_state;
+static PyThreadState *thread_state;
 
 void
 allow_python_threads()
 {
-//    thread_state = PyEval_SaveThread();
+    thread_state = PyEval_SaveThread();
 }
 
 void
 disable_python_threads()
 {
-//    PyEval_RestoreThread(thread_state);
+    PyEval_RestoreThread(thread_state);
 }
 
 void