title: ImportError when trying to import a custom module in Python
body: <p><em>Note that I searched SO for this error and while there were many similar questions, I didn't find one that addressed this particular issue.</em></p>
  
  <p>I'm working on a Python module that looks like this:</p>
  
  <pre><code>/com
      /company
          /foo
          /bar
  </code></pre>
  
  <p>I'm editing a source file within the <code>bar</code> directory and attempting to import classes that live in the <code>foo</code> directory. I've tried importing the files the following ways:</p>
  
  <pre><code>from com.company.foo import *
  from company.foo import *
  from foo import *
  import com.company.foo
  import company.foo
  import foo
  </code></pre>
  
  <p>Each of these produces a similar error:</p>
  
  <pre><code>ImportError: no module named com.company.foo
  </code></pre>
  
  <p>I have <code>__init__.py</code> files in each of the directories, including the directory that contains <code>com</code>.</p>
  
  <p>Not sure what I'm doing wrong here - thanks in advance for you assistance!</p>