python - import file from parent directory
<p>I have the following directory structure:</p>

<pre><code>application
    tests
        main.py
    main.py
</code></pre>

<p>application/main.py contains some functions.</p>

<p>tests/main.py will contain my tests for these functions but i cant import the top level main.py and get the following error:</p>

<pre><code>ImportError: Import by filename is not supported.
</code></pre>

<p>I am attempting to import using the following syntax:</p>

<pre><code>import main
</code></pre>

<p>What am i doing wrong?</p>
