summaryrefslogtreecommitdiff
path: root/plugins/python
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-16 21:55:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-16 21:58:00 (GMT)
commit2f11bd5ab90436bf148428aebecca461cb5d095b (patch)
tree5318057f4def4116da781e270808f3d7062f13ed /plugins/python
parent962a955dfd6788f619c492d8f954ff6f4322947a (diff)
Do not ask Python GI to look for GTK in batch mode.
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/scripting/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/python/scripting/core.py b/plugins/python/scripting/core.py
index ff912ed..135edb4 100644
--- a/plugins/python/scripting/core.py
+++ b/plugins/python/scripting/core.py
@@ -1,4 +1,7 @@
+import gi
+gi.require_version('Gtk', '3.0')
+
from gi.repository import GLib, Gtk
import os