MySQLdb missing image error from PyCharm IDE when django sync
Solution:
You can set the environment used by launchd (and, by extension, anything started from Spotlight) with launchctl setenv.
For example to set the path:
launchctl setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
Or if you want to set up your path in