title: Local package working fine on its own, but not when importing from different directory
body: <p>So I have my package created, lets call it &quot;detection&quot;, and working fine on its own (meaning, when i run some example codes in detection/main.py they behave as expected). My working directory looks like this:</p>
  <ul>
  <li>detection
  <ul>
  <li>data_processing
  <ul>
  <li>_ <em>init</em> _.py</li>
  <li>data_processing.py</li>
  </ul>
  </li>
  <li>_ <em>init</em> _.py</li>
  <li>main.py (Info: imports data_processing.py like this: &quot;`from data_processing.data_processing import function_1&quot; and contains a class named Function)</li>
  </ul>
  </li>
  <li>test.py</li>
  </ul>
  <p>however, when I import Function from the module detection from the file test.py like this:</p>
  <pre><code>from detection.main import Function
  </code></pre>
  <p>and try to use Function, I receive the following error:</p>
  <pre><code>ModuleNotFoundError: No module named 'data_processing'
  </code></pre>
  <p>I think that the problem is that when importing in test.py the file detection/main.py is running on the current directory and not on its own local directory, for which all the paths are suited.
  How can I solve it?</p>