[SciPy-user] subprocess

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Jun 23 12:00:30 CDT 2009


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
>> SciPy-user@scipy.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 
>*comp.lang.python*.
  
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 ?

Nils


More information about the SciPy-user mailing list