On Thu, 2007-12-06 at 10:59 +1030, David Gowers wrote:

> In fact, all Gimp plugins are executables; when you call a plugin,
> GIMP runs it and communicates with it through a pipe. GIMP does not
> implement any special behaviour for .py files. That is why Python
> plugins must be executable.

In fact GIMP does implement special behavior for .py files. Or rather,
pygimp tells GIMP that files ending in .py should be executed by the
Python interpreter. This is what the third line in
$(prefix)/lib/gimp/2.0/interpreters/pygimp.interp does. The effect is
that you can omit the shebang (#!/usr/bin/python) if your plug-in's
filename has the .py suffix.

But you are right that all plug-ins must be executable. Files that don't
have the exectuable bit set are skipped when plug-ins are initialized.


Gimp-developer mailing list

Reply via email to