title: Importing Own Python Module in Mac
body: <p>I have created own <strong>Python Modules</strong>.</p>
  
  <p>Directory Structure:</p>
  
  <pre><code>main_dir
      |--- __init__.py
      |--- test
             |--- __init__.py
             |--- test1.py
      |--- lib
             |--- __init__.py
             |--- lib1.py
  </code></pre>
  
  <p>I imported <strong>lib1.py</strong> inside <strong>test1.py</strong> using this</p>
  
  <pre><code>from lib.lib1 import Lib
  </code></pre>
  
  <p>and running the <strong>test1.py</strong> using this</p>
  
  <pre><code>python -m test/test1
  </code></pre>
  
  <p>This works in <strong>Ubuntu</strong> and I am able to run my python (<strong>test1.py</strong>) script <strong>successfully</strong> while having <strong>problem</strong> in <strong>MAC OS X</strong>. It throws</p>
  
  <pre><code>/usr/bin/python: No module named test/test1
  </code></pre>
  
  <p>Any Suggestions?</p>