title: How to Execute Python-Fu script from shell via Gimp
body: <p>I'm trying to figure out a simple way to execute a Python-Fu script I wrote up that's working in single-threaded mode from the Python-Fu interpreter plugin of Gimp but will no longer work when refactored into its multiprocessing equivalent due to the Windows non POSIX / OS.Fork limitations that pop up in <code>Pool.map_async()</code>. As a work around I'm trying to invoke the script directly from the cmd shell but can't figure out the right command to get it done. I have the gimp bin directory on my PATH variable and am trying to get something achieved like the following...</p>
  
  <pre><code>c:\&gt;gimp-console-2.8 --no-interface --batch "(python-fu execfile('myPyFuScript.py'))"
  c:\&gt;gimp-console-2.8 --no-interface --batch "myPyFuScript.py"
  </code></pre>
  
  <p>Is there a way to get Gimp to execute a python script using its Python-Fu module from a command issued at the Windows cmd shell?</p>
  
  <p>Just for added background I'm taking inspiration from the following <a href="http://www.gimp.org/docs/python/" rel="nofollow">documentation</a>...</p>
  
  <blockquote>
    <p><strong>GIMP Python Invocation from the Shell</strong></p>
    
    <p>All this means that you could
    easily invoke a GIMP Python plug-in such as the one above directly
    from your shell using the (plug-in-script- fu-eval …) evaluator:</p>
  </blockquote>
  
  <pre><code>gimp --no-interface --batch '(python-fu-console-echo RUN-NONINTERACTIVE "another string" 777 3.1416 (list 1 0 0))' '(gimp-quit 1)'
  </code></pre>