title: how to manage sys.path globally in pycharm
body: <p>I have a bunch of unittests that import stuff not from <code>/python2.7/site-packages/</code> but from a completely different directory. So what I do is do some monkey-patching in each test file with <code>sys.path.append</code> to make my Python see what I need.</p>
  
  <p>Is there a way to append <code>sys.path</code> globally for the whole Pycharm project without bothering with each and every file?</p>
  
  <p>UPDATE:
  setting default working directory doesn't help. For example, if I set the working directory to <code>/Users/1111/_projects/_empty_dir/</code> like so:</p>
  
  <p><img src="https://i.stack.imgur.com/u86XN.png" alt="screenshot"></p>
  
  <p>and then run this</p>
  
  <pre><code>import sys
  for p in sys.path: print p
  </code></pre>
  
  <p>what I see is this</p>
  
  <pre><code>/Users/1111/.virtualenvs/blesk/bin/python /Users/1111/_projects/_testing_pycharm/importer.py
  /Users/1111/_projects/_testing_pycharm
  /Users/1111/.virtualenvs/blesk/lib/python2.7/site-packages/six-1.9.0-py2.7.egg
  /Users/1111/.virtualenvs/blesk/lib/python2.7/site-packages/parse-1.6.6-py2.7.egg
  /Users/1111/_projects/_testing_pycharm
  /Users/1111/.virtualenvs/blesk/lib/python27.zip
  /Users/1111/.virtualenvs/blesk/lib/python2.7
  /Users/1111/.virtualenvs/blesk/lib/python2.7/plat-darwin
  /Users/1111/.virtualenvs/blesk/lib/python2.7/plat-mac
  /Users/1111/.virtualenvs/blesk/lib/python2.7/plat-mac/lib-scriptpackages
  /Users/1111/.virtualenvs/blesk/lib/python2.7/lib-tk
  /Users/1111/.virtualenvs/blesk/lib/python2.7/lib-old
  /Users/1111/.virtualenvs/blesk/lib/python2.7/lib-dynload
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
  /Users/1111/.virtualenvs/blesk/lib/python2.7/site-packages
  
  Process finished with exit code 0
  </code></pre>
  
  <p>and there is no <code>/Users/1111/_projects/_empty_dir/</code> on <code>sys.path</code>.</p>