Arranging code in Python
<p>I'm trying to create a development environment where modules are
divided into libraries and applications.<br>
The application needs to import a module that is not installed
as a package into the main python packages.<br>
Both the application and the libraries are continuously modified.<br><br></p>

<p>This is the directory layout of the files.  Files from one project may be reused by other projects, and thus cannot be in the same directory tree.</p>

<pre><code>projA\lib\util.py
projA\lib\other.py
projB\lib\another.py
projC\src\app1\app1.py
</code></pre>

<p>So far, the best I could come up with is the following, 
which causes problems for IDEs code completion because of the dynamic imports</p>

<pre><code># app1.py
import sys
sys.path.append('../../../projA/lib')
import util
</code></pre>

<p>Is there a better way of doing this?</p>
