title: python: cannot find module in the package
body: <p>I am creating a python project with the following directory structure:</p>
  
  <pre><code>demos
     demo1.py
  kernels
     rbf.py
     ___init__.py
  </code></pre>
  
  <p>The file <code>rbf.py</code> defines a class called <code>RBF</code>. The <code>__init__.py</code> file in the <code>kernels</code> directory contains the following line:</p>
  
  <pre><code>from .rbf import *
  </code></pre>
  
  <p>Now the <code>demo1.py</code> contains the following import:</p>
  
  <pre><code>from kernels import RBF
  </code></pre>
  
  <p>However, this fails with </p>
  
  <pre><code>ImportError: No module named kernels
  </code></pre>
  
  <p>So the <code>demos</code> folder does not see the <code>kernels</code> package directory. I am at a loss as to what to do to make this work.</p>