title: trying to make paths work - attempted relative import beyond top-level package
body: <p>I can't make this work..</p>
  
  <p>My structure is:</p>
  
  <pre><code>program_name/
  
    __init__.py
    setup.py
  
    src/
      __init__.py
  
      Process/
          __init__.py
          thefile.py
  
    tests/
       __init__.py
       thetest.py
  </code></pre>
  
  <p>thetest.py:</p>
  
  <pre><code>from ..src.Process.thefile.py import sth
  </code></pre>
  
  <p>Running: <code>pytest ./tests/thetest.py</code> from <code>program_name</code> gives :</p>
  
  <p><code>ValueError: attempted relative import beyond top-level package</code></p>
  
  <p>I tried also other approaches but i am receiving various errors.</p>
  
  <p>But I would expect for the above to work.</p>