title: ImportError and project structure
body: <p>I'm having a hard time o understand how python works with packages and modules and would really need some help here. </p>
  
  <p>At first I had a project that looked like this in pycharm:</p>
  
  <pre><code>PROJECTNAME 
   - package1
        - __init__.py
        - MyModule.py
        - MyModule2.py
   - package2
        - __init__.py
        - MyModule3.py
   - test
        - test.py
   - RunModule.py
   - README.md
   - setup.py
  </code></pre>
  
  <p>RunModule import from module 1,2 and 3. I can run it like this without any problem: </p>
  
  <pre><code>python RunModule.py
  </code></pre>
  
  <p>Then I changed the structure to this: </p>
  
  <pre><code>PROJECTNAME 
   -projectname
        - package1
            - __init__.py
            - MyModule.py
            - MyModule2.py
         - package2
            - __init__.py
            - MyModule3.py
         - test
            - test.py
         - RunModule.py
   - README.md
   - setup.py
  </code></pre>
  
  <p>And when I try to run RunModule.py I get "ImportError: No module named projectname.package1.MyModule" and same error for all the other modules too. I know two ways to fix this: </p>
  
  <ul>
  <li>remove projectname in all imports in all files so it's just package1.modulename</li>
  <li>move RunModule.py up on directory again</li>
  </ul>
  
  <p>If I do the first one pycharm complains when I run my tests and the second one is pretty ugly. So can I fix this in some other way? </p>