python import within directory
<p>I have a python project, I divided it into two parts, a library part and a
binary part.</p>

<p>For organization reasons, I wanted to have a hierarchy like this:</p>

<pre><code>project/
    lib/
        __init__.py
        module1.py
        module2.py
    bin/
        binary1.py # contains: import module1
        binary2.py # contains: import module2
    doc/
    ...
</code></pre>

<p>The problem is, of course, the simple import in binary{1,2}.py doesn't work, at
least in the coding phase (before installation).</p>

<p>Any suggestions? How do you test your code when you're coding?</p>
