title: Python : How to import user defined packages from any location?
body: <p>I am trying to import packages in python . Below mentioned is my folder structure </p>
  
  <pre><code>MainFolder
        |config| locator|logs|page|tests
  </code></pre>
  
  <p>Each folder has <code>__init__.py</code> file .  tests folder has <code>test.py</code>. Now , inside <code>test.py</code> i am trying to import files from folders - config| locator|logs<br>
   However python is not recognizing them as package. If I place them under <code>C:\Python27\Lib</code> then I am able to import.</p>
  
  <p>I tried adding <code>sys.path.append(os.path.abspath("/ MainFolder/&lt;folder name&gt;"))</code> before importing but it is not working.
  How do I import them ?</p>