To test that this works, run gimp in batch mode: % gimp2.99 -i -b - And then type: (python-fu-eval "print (2)") .