title: relative import in python 3.9.5
body: <p>My folder structure is as follows</p>
  <pre><code>./fff
  ├── __init__.py
  ├── fg
  │   ├── __init__.py
  │   └── settings
  │       ├── __init__.py
  │       └── settings.py
  └── obng
      └── test.py
  </code></pre>
  <p>I want to import the settings.py inside fg/settings as a module into the test.py</p>
  <p>I have added the line</p>
  <p>from ..fg.settings import settings</p>
  <p>But when I run it, it gives me the following error</p>
  <p>Traceback (most recent call last):
  File &quot;/mnt/d/Repos/fff/obng/test.py&quot;, line 1, in 
  from ..fg.settings import settings
  ImportError: attempted relative import with no known parent package</p>
  <p>This style of relative importing is supported as per <a href="https://docs.python.org/3/reference/import.html#package-relative-imports" rel="nofollow noreferrer">https://docs.python.org/3/reference/import.html#package-relative-imports</a></p>
  <p>What am I doing wrong here?</p>