[gimp] plug-ins: pre-load Babl module in Python console.



commit 9454567e8c1bb94ebacc8d6ebd0ba4eebee0701f
Author: Jehan <jehan girinstud io>
Date:   Fri Aug 9 14:41:01 2019 +0200

    plug-ins: pre-load Babl module in Python console.

 plug-ins/python/python-console/python-console.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plug-ins/python/python-console/python-console.py 
b/plug-ins/python/python-console/python-console.py
index 35dc5f8024..797570f905 100755
--- a/plug-ins/python/python-console/python-console.py
+++ b/plug-ins/python/python-console/python-console.py
@@ -42,6 +42,7 @@ def run(procedure, args, data):
 
     namespace = {'__builtins__': __builtins__,
                  '__name__': '__main__', '__doc__': None,
+                 'Babl': gi.repository.Babl,
                  'cairo': gi.repository.cairo,
                  'Gdk': gi.repository.Gdk,
                  'Gegl': gi.repository.Gegl,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]