Python script can't see my modules
<p>I have a project set up like this:</p>

<pre><code>panel/
   configure.py
   run.py
   panel/
      __init__.py
      mailer.py
      helpers/
         __init__.py
         gearman.py
</code></pre>

<p><code>mailer.py</code> includes the import <code>from helpers.gearman import ExceptionalGearmanWorker</code>. <code>mailer.py</code> also includes an <code>if __name__ == '__main__'</code> check to run the program when invoked from the command line.</p>

<p>From the top-level <code>panel/</code> directory I want to run <code>python panel/mailer.py</code>. When I try to run this, <code>mailer.py</code> is unable to import from <code>gearman.py</code>. The specific error is</p>

<pre><code>Traceback (most recent call last):
  File "panel/mailer.py", line 14, in &lt;module&gt;
    from panel.cgearman import ExceptionalGearmanWorker
ImportError: No module named panel.cgearman
</code></pre>

<p>It looks like running the script directly, from within <code>panel/</code> doesn't add <code>panel/</code> to the import path? Is this correct? Can I make this work somehow?</p>
