title: Python Relative import not working
body: <pre><code>main_package
   |
   | __init__.py
   | folder_1
   |  | __init__.py
   |  |script_a.py
   |  |
   | folder_2
   |  | __init__.py
   |  | script_b.py
  </code></pre>
  
  <p>I want to access script_b from script_a and import b_class with relative import</p>
  
  <p>script_a.py:</p>
  
  <pre><code>from ..folder2.script_b import b_class
  </code></pre>
  
  <p>Gives me error => ValueError: attempted relative import beyond top-level package</p>
  
  <p><a href="http://dosya.co/y6aqrgp993fu/main_package.rar.html" rel="nofollow noreferrer">http://dosya.co/y6aqrgp993fu/main_package.rar.html</a></p>