title: PYTHONPATH not included in sys.path on Ubuntu 16.04
body: <p>After struggling with this for quite a few hours I am at my wit's end.</p>
  
  <p>I want to include the Python modules from my project into the PYTHONPATH, so that the Python interpreter can resolve them and make them available for <code>import</code>.</p>
  
  <p>My project folder looks like this:</p>
  
  <pre><code>my_project/
    module1/
      __init__.py
      module1.py
    module2/
      __init__.py
      module2.py
  </code></pre>
  
  <p>I've exported PYTHONPATH in <code>/etc/bash.bashrc</code> like this:</p>
  
  <pre><code>PYTHONPATH="${PYTHONPATH}:/home/john/my_project/"
  </code></pre>
  
  <p>After restarting my shell I can echo it:</p>
  
  <pre><code>$ echo $PYTHONPATH
  :/home/john/my_project/
  </code></pre>
  
  <p>Then I fire up a Python command line and look at what <code>sys.path</code> became:</p>
  
  <pre><code>$ source /home/john/my_env/bin/activate
  (my_env)$ python3
  &gt;&gt;&gt; import os
  &gt;&gt;&gt; sys.path
  ['', '/home/john/my_env/lib/python35.zip', '/home/john/my_env/lib/python3.5', '/home/john/my_env/lib/python3.5/plat-x86_64-linux-gnu', '/home/john/my_env/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/home/john/my_env/lib/python3.5/site-packages']
  </code></pre>
  
  <p>As you can clearly see, <code>/home/john/my_project/</code> wasn't included and <code>import module1</code> will fail.</p>
  
  <p>The last thing I can think of is that Python can't see my PYTHONPATH variable, hence not adding it's content to <code>sys.path</code>.</p>
  
  <p>Do you guys find my mistake?</p>
  
  <p>Thanks in advance.</p>