How to use PyCharm for GIMP plugin development? : <p>I need to develop a plugin for GIMP and would like to stay with PyCharm for Python editing, etc.</p>

<p>FYI, I'm on Windows.</p>

<p>After directing PyCharm to use the Python interpreter included with GIMP:</p>

<p><a href="https://i.stack.imgur.com/RbFkW.jpg"><img src="https://i.stack.imgur.com/RbFkW.jpg" alt="Project interpreter"></a></p>

<p>I also added a path to <code>gimpfu.py</code> to get rid of the error on <code>from gimpfu import *</code>:</p>

<p><a href="https://i.stack.imgur.com/1DYZO.jpg"><img src="https://i.stack.imgur.com/1DYZO.jpg" alt="enter image description here"></a></p>

<p>This fixes the error on the import, even when set to <code>Excluded</code>.  </p>

<p>I experimented with setting this directory to <code>Sources</code>, <code>Resources</code> and <code>Excluded</code> and still get errors for constants such as <code>RGBA-IMAGE</code>, <code>TRANSPARENT_FILL</code>, <code>NORMAL_MODE</code>, etc.</p>

<p><a href="https://i.stack.imgur.com/K2EFG.jpg"><img src="https://i.stack.imgur.com/K2EFG.jpg" alt="enter image description here"></a></p>

<p>Any idea on how to contort PyCharm into playing nice for GIMP plugin development?</p>

<p>Not really running any code from PyCharm, it's really just being used as a nice code editor, facilitate revisions control, etc.</p>
