How to use PyCharm for GIMP plugin development?

Viewed 1042

I need to develop a plugin for GIMP and would like to stay with PyCharm for Python editing, etc.

FYI, I'm on Windows.

After directing PyCharm to use the Python interpreter included with GIMP:

Project interpreter

I also added a path to gimpfu.py to get rid of the error on from gimpfu import *:

enter image description here

This fixes the error on the import, even when set to Excluded.

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

enter image description here

Any idea on how to contort PyCharm into playing nice for GIMP plugin development?

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

1 Answers
Related