title: cannot import a python module from a python package
body: <p>I have this repository structure:</p>
  
  <pre><code>py_files_and_packages/ # normal folder 
      package/  
          module1.py # contains a class  
          module2.py
  </code></pre>
  
  <p>the <code>__init__.py</code> file of this package contains only <code>__author__='my name'</code>  </p>
  
  <p>The Problem:<br>
  I am trying to import the class from module1.py into model2.py. When I use<br>
   <code>from package.model1 import model1</code><br>
  and rung the script(model2.py) within PyCharm it works. However, when I run it from the command line it doesn't find the package. The error message: <code>ImportError: No module named 'my package's name'</code>.  </p>
  
  <p>I tried many tricks I found on the web such as (<a href="https://stackoverflow.com/a/22777011/2804070)but">https://stackoverflow.com/a/22777011/2804070)but</a> it didn't work.<br>
  I am using python-3.5.1 (installed locally), PyCharm 5.0.4 community edition, OS debian wheezy</p>