title: Why does the "package" has a "package" in the Doxygen tree?
body: <p>I generate the documentation of my Python code from the docstrings via <a href="https://www.doxygen.nl/index.html" rel="nofollow noreferrer">Doxygen</a> (1.9.1) in addition with <a href="https://github.com/Feneric/doxypypy" rel="nofollow noreferrer">doxypypy</a> (git version from today).</p>
  <p>My project is called <code>Project</code> and the packages name in it (which should be <code>import</code>ed) is <code>mypackage</code>. When I look into the tree sidebar of the generated html it looks like this:</p>
  <pre><code>└── Project
      └── Packages
          └── Packages
              └──mypackages
  </code></pre>
  <p>The two <em>packages</em> are linking to the same target: <code>../html/namespaces.html</code>.</p>
  <p>The files and folders are structured like this</p>
  <pre><code>Project
  ├── LICENSE
  ├── README.md
  ├── docs
      └── ...
  └── src
      ├── mypackage
      │   ├── a.py
      │   ├── __init__.py
      │   └── _mypackage.py
      ├── setup.cfg
      └── setup.py
  </code></pre>
  <p>The <code>Doxyfile</code> is located in <code>Project/docs</code>, <code>doxygen</code> is run in there and use <code>../src/mypackage</code> as <code>INPUT</code> directory.</p>
  <h1>More details</h1>
  <h2><code>__init__.py</code></h2>
  <pre><code>__version__ = '0.0.1a'
  
  from ._mypackage import *
  </code></pre>
  <h2><code>_mypackage.py</code></h2>
  <pre><code># -*- coding: utf-8 -*-
  &quot;&quot;&quot;Example __init__.py short.
  
  Now some longer with multiple lines. Here
  comes the scond line.
  &quot;&quot;&quot;
  
  def foo(bar):
      &quot;&quot;&quot;
      This is foo() in mypackage.
  
      Args:
          bar (str): A paramenter.
  
      Returns:
          (int): Fixed seven.
      &quot;&quot;&quot;
      print(bar)
      return 7
  </code></pre>
  <h2><code>a.py</code></h2>
  <pre><code># -*- coding: utf-8 -*-
  &quot;&quot;&quot;This is mypackage.a
  &quot;&quot;&quot;
  import mypackage
  
  
  
  def bar(bar):
      &quot;&quot;&quot;
      This is the function named bar.
  
      The function calls `mypackage.foo()` and returns an 'a'.
  
      Paramters:
          bar (str): Just a parameter.
  
      Returns:
          str: Just an 'a'.
      &quot;&quot;&quot;
      mypackage.foo(bar)
      return('a')
  </code></pre>
  <h2>Some (maybe) related <code>Doxyfile</code> settings</h2>
  <pre><code>BRIEF_MEMBER_DESC      = YES
  REPEAT_BRIEF           = YES
  ALWAYS_DETAILED_SEC    = NO
  FULL_PATH_NAMES        = YES
  JAVADOC_AUTOBRIEF      = NO
  PYTHON_DOCSTRING       = YES
  OPTIMIZE_OUTPUT_FOR_C  = NO
  OPTIMIZE_OUTPUT_JAVA   = YES
  OPTIMIZE_FOR_FORTRAN   = NO
  OPTIMIZE_OUTPUT_VHDL   = NO
  OPTIMIZE_OUTPUT_SLICE  = NO
  MARKDOWN_SUPPORT       = YES
  EXTRACT_ALL            = YES
  EXTRACT_PRIVATE        = YES
  EXTRACT_PACKAGE        = YES
  EXTRACT_STATIC         = YES
  EXTRACT_LOCAL_CLASSES  = YES
  EXTRACT_LOCAL_METHODS  = YES
  EXTRACT_ANON_NSPACES   = NO
  RESOLVE_UNNAMED_PARAMS = YES
  HIDE_UNDOC_MEMBERS     = NO
  HIDE_UNDOC_CLASSES     = NO
  HIDE_FRIEND_COMPOUNDS  = NO
  HIDE_IN_BODY_DOCS      = NO
  INPUT                  = ../src/mypackage
  FILE_PATTERNS          =
  RECURSIVE              = YES
  FILTER_PATTERNS        = *.py=./py_filter
  GENERATE_HTML          = YES
  
  GENERATE_TREEVIEW      = YES
  </code></pre>
  <p>I opened an <a href="https://github.com/doxygen/doxygen/issues/9192" rel="nofollow noreferrer">Issue</a> about that.</p>