Importing an ancestor module
<p>I have a directory structure like this:</p>

<p>in src folder i have a module named util.py
in src/dir1/dir2 i have another module named client.py</p>

<p>i need to import util.py in client.py.</p>

<p>I have seen different questions about this topic in stackoverflow i tried different cases:</p>

<p>(relative path) in init.py of client.py folder i tried to do </p>

<pre><code>from ... import util
</code></pre>

<p>but it gives me Import Error.</p>

<p>(absolute path) in the same init.py i tried:</p>

<pre><code>import src.util
</code></pre>

<p>but it gives me the same error (Import Error).</p>

<p>I need a way that causes no problem with py2exe because i need it later.</p>

<p>Thanks for any answer.</p>

<p>I forgot to mention i'm using python2.7.1</p>
