plug-ins: import Babl and Gegl modules in python-eval plug-in.

This makes it easier to run babl and GEGL code directly through the command line
or script files.
This commit is contained in:
Jehan 2024-02-28 21:10:23 +01:00
parent 84c0584aea
commit d6a134e6c1
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import gi
gi.require_version('Babl', '0.1')
from gi.repository import Babl
gi.require_version('Gegl', '0.4')
from gi.repository import Gegl
gi.require_version('Gimp', '3.0')
from gi.repository import Gimp
from gi.repository import GObject