title: Publishing a python package where package loads a logging config file fails when imported into another package
body: <p>I am trying to publish a package (<code>wrapper</code>) and then import it into another package (<code>client</code>) to use but having trouble with importing as the <code>wrapper</code> package makes use of sibling/children packages as well as a <code>config.ini</code> file for logging purposes.</p>
  <p>This is what <code>wrapper</code> looks like:</p>
  <pre><code>.
  ├── wrapper
  │   ├── __init__.py
  │   ├── aiowrapper.py
  │   ├── logger
  │   │   └── config.ini
  │   ├── models
  │   │   ├── __init__.py
  │   │   └── models.py
  ├── poetry.lock
  ├── pyproject.toml
  </code></pre>
  <p>In the <code>wrapper</code>, the following lines are what are causing me issues:</p>
  <pre><code>from .models.models import Position
  
  logging.config.fileConfig('logger/config.ini', disable_existing_loggers=False)
  log = logging.getLogger(__name__)
  </code></pre>
  <p>I am testing using this from a jupyter notebook in the <code>client</code> package. Here's the steps I follow:</p>
  <ol>
  <li>In <code>wrapper</code> - <code>poetry build --no-cache</code></li>
  <li>In <code>client</code> - <code>poetry add -D &lt;path-to-tar-build-file</code></li>
  <li>In <code>client</code> jupyter notebook - <code>from wrapper.aiowrapper import Session</code></li>
  </ol>
  <p>This gives the following error:</p>
  <pre><code>---&gt; 10 logging.config.fileConfig('logger/config.ini', disable_existing_loggers=False)
       11 log = logging.getLogger(__name__)
       13 class Session:
  
  File ~/.pyenv/versions/3.10.4/lib/python3.10/logging/config.py:72, in fileConfig(fname, defaults, disable_existing_loggers, encoding)
       69         encoding = io.text_encoding(encoding)
       70         cp.read(fname, encoding=encoding)
  ---&gt; 72 formatters = _create_formatters(cp)
       74 # critical section
       75 logging._acquireLock()
  
  File ~/.pyenv/versions/3.10.4/lib/python3.10/logging/config.py:105, in _create_formatters(cp)
      103 def _create_formatters(cp):
  ...
      963     if key != self.default_section and not self.has_section(key):
  --&gt; 964         raise KeyError(key)
      965     return self._proxies[key]
  
  KeyError: 'formatters'
  </code></pre>
  <p>Which suggests that the config file is not being found.</p>
  <p>I've found <a href="https://stackoverflow.com/questions/14822704/how-to-distribute-logging-config-with-python-package">this</a> but is there a way to do this without adding it to the path like that?</p>