title: Python: How to import sub-modules, from packages with the same name?
body: <p>I have a project setup looks like this:</p>
  
  <p><strong>Base project</strong></p>
  
  <pre><code>/some_disk/some_folder/
  |-- project/
  |   |-- package/
  |   |   |-- src/
  |   |   |   |-- file_a.py
  |   |   |   |-- file_b.py
  </code></pre>
  
  <p><strong>Extension project</strong></p>
  
  <pre><code>/some_other_disk/some_folder/
  |-- project/
  |   |-- package/
  |   |   |-- src/
  |   |   |   |-- file_c.py
  |   |   |   |-- file_d.py
  </code></pre>
  
  <p>Then I have a third project, in which I would like to be able to use both mopdules file_a and file_c.</p>
  
  <p>In that third project, I have setup my Python path like this</p>
  
  <pre><code>PYTHONPATH=$PYTHONPATH:/some_disk/some_folder:/some_other_disk/some_folder
  </code></pre>
  
  <p>Then, to import the files, I have this in my main module:</p>
  
  <pre><code>import project.module.src.file_a
  import project.module.src.file_c
  </code></pre>
  
  <p>This, however, only makes me able to import one of the modules, and having an <em>module not found</em> error on the other one.</p>
  
  <p>Can I make this work using this project structure? Or will Python always only look into one of the "main"-modules and consider the sub-module not found if it's not in there?</p>
  
  <p>EDIT: The project makes use of Python 2.6</p>