title: Importing from subfolder in Python
body: <p>This is the situation. I'm using Python 3.6</p>
  
  <p>I currently have the next folder organization:</p>
  
  <pre><code>/MainProject
    __init__.py
      /Folder1
        pyscript1.py
        pyscript2.py
        __init__.py
      /Folder2
        pyscript3.py
        __init__.py
  </code></pre>
  
  <p>So, I'm trying to get a function that exists in pyscript1.py from pyscript3. I've also added a <strong>init</strong>.py at every level. Inside pyscript3.py I tried the following:</p>
  
  <pre><code>from . import Folder1
  </code></pre>
  
  <p>Giving the error:</p>
  
  <pre><code>ImportError: cannot import name 'Folder1'
  </code></pre>
  
  <p>Also I tried:</p>
  
  <pre><code>from .Utils import script1
  </code></pre>
  
  <p>Giving the error:</p>
  
  <pre><code>ModuleNotFoundError: No module named '__main__.Utils'; '__main__' is not a 
  package
  </code></pre>
  
  <p>I know that I can solve it using sys and os in the following manner:</p>
  
  <pre><code>sys.path.append(os.path.realpath('../..'))
  </code></pre>
  
  <p>But I wanted to know if this is possible without using sys.</p>