title: Running External Tools from IntelliJ not finding Python libraries
body: <p>I've setup a few <strong>External Tools</strong> in IntelliJ (PyCharm) to run <strong>pyuic4</strong> and <strong>pyrcc4</strong> which are command line utilities used with PyQt to compile QRC resource files and Qt Designer .ui files into Python .py source files.</p>
  
  <p>I've also created a Makefile to run the above tools in one go. When I run either from the terminal, everything works 100%.</p>
  
  <p>I'm finding issues when trying to run these from within IntelliJ, its complaining that it can't find the module named PyQt4, here's the output:</p>
  
  <pre><code>/usr/bin/make all
  /usr/local/bin/pyuic4 resources/ui/mainwindow.ui -o output/ui_mainwindow.py
  Traceback (most recent call last):
    File "/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages/PyQt4/uic/pyuic.py", line 31, in &lt;module&gt;
      from PyQt4 import QtCore
  ImportError: No module named PyQt4
  make: *** [output/ui_mainwindow.py] Error 1
  
  Process finished with exit code 2
  </code></pre>
  
  <p>I'm assuming this is to do because the External Tools aren't using the same environment variables as when run from the terminal?</p>
  
  <p>Does anyone have a suggestion on how to rectify this in IntelliJ?</p>