Tue Jun 23 12:14:34 CDT 2009
On Tue, Jun 23, 2009 at 12:00 PM, Nils Wagner
> On Tue, 23 Jun 2009 10:52:13 -0600
> Jim Vickroy <Jim.Vickroy@noaa.gov> wrote:
> > Nils Wagner wrote:
> >> Hi all,
> >> Sorry if the subject is off-topic.
> >> How can I run gimp from python using subprocess ?
> >> I would like to use several arguments, e.g.
> >> gimp --batch-interpreter=plug-in-script-fu-eval -i -d -b
> >> '(script-autocrop "a.png")' -b '(gimp-quit 0)'
> >> Thanks in advance.
> >> Nils
> >> _______________________________________________
> >> SciPy-user mailing list
> >> SciPyfirstname.lastname@example.org
> >> http://mail.scipy.org/mailman/listinfo/scipy-user
> > ... don't know what Python version you are using but
> >recent releases (version 2.4 and later) include the
> >*subprocess* module.
> > Questions of this sort are best posted to
> Thank you for your response.
> I know how to import subprocess, but how do I deal with
> all the quotes in the argument list
> of my gimp command ?
Will that subprocess call executed Gimp session be similar in using it from
within Python-fu console? I don't know of any other way of scripting the
Gimp with Python. (Externally as you are trying to do or accessing its
modules using Ipython maybe)
Could you please share your findings? I would also like to learn how to
script Blender once I start get going on Gimp.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user