title: Import modules from subfolders
body: <p>I have following arrangement of files:</p>
  <pre class="lang-none prettyprint-override"><code>python
  |---- main.py
  |---- files
        |---- folder1
              |---- a.py, a1.py, ...
        |---- folder2
              |---- b.py, b1.py, ...
  </code></pre>
  <p>I wanted to import my modules <code>a.py</code> and <code>b.py</code> to <code>main.py</code>. For this I used the following commands in <code>main.py</code>:</p>
  <pre><code>a = 'C:/python/files/folder1'
  sys.path.insert(0, a)
  from files.folder1 import *
  </code></pre>
  <p>However, I am unable to import modules from folder1 (similarly for folder2).</p>
  <p>I get an error:</p>
  <blockquote>
  <p>No module named files.folder1</p>
  </blockquote>
  <p>I cannot use import command as there are many Python files in folder1, folder2, ...</p>
  <p>What am I missing here?</p>