title: PYTHONPATH ignored
body: <p>Environment: debian 4.0</p>
  
  <p>Python 2.4</p>
  
  <p>My 'project' is installed in:</p>
  
  <blockquote>
    <p>/usr/lib/python2.4/site-packages/project. </p>
  </blockquote>
  
  <p>But I want to use my working copy instead of the installed one which is located in:</p>
  
  <blockquote>
    <p>/home/me/dev/project/src</p>
  </blockquote>
  
  <p>So what I do is:</p>
  
  <blockquote>
    <p>export PYTHONPATH=/home/me/dev/project/src</p>
    
    <p>ipython</p>
    
    <p>import foo # which is in src</p>
    
    <p><code>foo.__file__</code></p>
  
  <pre><code>*/usr/lib/python2.4/site-packages/project/foo.py*
  </code></pre>
  </blockquote>
  
  <p>instead of :</p>
  
  <blockquote>
    <p>/home/me/dev/project/src/project/foo.py</p>
  </blockquote>
  
  <p>How come? I try to check the pathes (having done the export above) and what I see is:</p>
  
  <blockquote>
    <p>import sys,os</p>
    
    <p>sys.path</p>
    
    <p><em>['',
     '/usr/bin',
     '/usr/lib/python2.4/site-packages',
     '/home/me/dev/project/src',
     '/usr/lib/python24.zip',
     '/usr/lib/python2.4',
     '/usr/lib/python2.4/plat-linux2',
     '/usr/lib/python2.4/lib-tk',
     '/usr/lib/python2.4/lib-dynload',
     '/usr/local/lib/python2.4/site-packages',
     '/usr/lib/python2.4/site-packages/PIL',
     '/var/lib/python-support/python2.4',
     '/usr/lib/python2.4/site-packages/IPython/Extensions',
     '/home/me/.ipython']</em></p>
    
    <p>os.environ['PYTHONPATH']</p>
    
    <p><em>/home/me/dev/project/src</em></p>
  </blockquote>