title: Problem importing a module from a local package containing some modules that are used in other modules in the same package
body: <p>Within a folder <code>somedir</code> I have several directories <code>dir1</code>, <code>dir2</code> etc. and some files <code>x.py</code>, <code>y.py</code>, <code>z.py</code> etc. In <code>dir1</code> there are modules <code>a</code>, <code>b</code>, <code>c</code> etc., module <code>a</code> is used in module <code>b</code> (like <code>from a import somethings</code>) with no problem as usual.</p>
  <p>But when I try to use any module say, <code>a</code> within module <code>x</code> and use this module <code>x</code> within module <code>z</code>, error occurs.</p>
  <pre><code>somedir/
      |dir1/
      |   |__init__.py
      |   |a.py
      |   |b.py # from a import somethings / import a etc. -&gt; ok
      |   |c.py
      |dir2/...
      |.
      |.
      |.
      |x.py # from dir1.a import * or somethings -&gt; error (`ModuleNotFoundError: No module named a`)
      |y.py
      |z.py # from x import * or somethings -&gt; error (`ModuleNotFoundError: No module named a`)
  </code></pre>
  <p>I haven't created any packages neither want to, as I want to use this in an application program. Should I really make a package for this to work. How can I manage such imports.
  Please help.</p>