different import results at different directories
<p>I have a package MyPak and a module MyMod. The files are organized in the following way:</p>

<blockquote>
  <p>somedir/MyPak/MyMod.py</p>
</blockquote>

<p>in MyMod.py there is only a Class whose name is also MyMod</p>

<p>in directory <strong>somedir/MyPak</strong>, if I do the import:</p>

<pre><code>import MyMod
</code></pre>

<p>I got MyMod imported as a Module. </p>

<p>But in directory <strong>somedir/</strong>, if I do </p>

<pre><code>from MyPak import MyMod
</code></pre>

<p>I got MyMod imported as a Class, not a Module. Why is this the case? </p>
