title: Unresolved Import Issues with PyDev and Eclipse
body: <p>I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to work through some of the Dive Into Python examples and this feels like an extremely trivial problem that's just becoming exceedingly annoying. I am using Ubuntu Linux 10.04.</p>
  
  <p>I want to be able to use the file odbchelper.py, which is located in the directory <code>/Desktop/Python_Tutorials/diveintopython/py</code></p>
  
  <p>Here is my example.py file that I'm working on in my PyDev/Eclipse project: </p>
  
  <pre><code>import sys
  sys.path.append("~/Desktop/Python_Tutorials/diveintopython/py")
  </code></pre>
  
  <p>This works fine, but then I want the next line of my code to be:</p>
  
  <pre><code>import odbchelper
  </code></pre>
  
  <p>and this causes an unresolved import error every time. I have added <code>__init__.py</code> files to just about every directory possible and it doesn't help anything. I've tried adding <code>__init__.py</code> files one at a time to the various levels of directories between the project location and the odbchelper.py file, and I've also tried adding the <code>__init__.py</code> files to all of the directories in between simultaneously. Neither works.</p>
  
  <p>All I want to do is have a project somewhere in some other directory, say <code>/Desktop/MyStuff/Project</code>, in which I have example.py ... and then from example.py I want to import odbchelper.py from <code>/Desktop/Python_Tutorials/diveintopython/py/</code></p>
  
  <p>Every message board response I can find just saying to use the <code>sys.path.append()</code> function to add this directory to my path, and then import it ... but that is precisely what I am doing in my code and it's not working.</p>
  
  <p>I have also tried the <kbd>Ctrl</kbd>-<kbd>1</kbd> trick to suppress the error message, but the program is still not functioning correctly. I get an error, <code>ImportError: No module named odbchelper</code>. So it's clearly not getting the path added, or there is some problem that all of my many permutations of adding <code>__init__.py</code> files has missed.</p>
  
  <p>It's very frustrating that something this simple... calling things from some file that exists somewhere else on my machine... requires this much effort.</p>