title: Is there a Pathlib alternate for os.path.join?
body: <p>I am currently accessing the parent directory of my file using <code>Pathlib</code> as follows:</p>
  
  <pre><code>Path(__file__).parent
  </code></pre>
  
  <p>When I print it, and this gives me the following output:</p>
  
  <pre><code>print('Parent: ', Path(__file__).parent)
  #output
  /home/user/EC/main-folder
  </code></pre>
  
  <p>The <code>main-folder</code> has a <code>.env</code> file which I want to access and for that I want to join the parent path with the <code>.env</code>. Right now, I did:</p>
  
  <pre><code>dotenv_path = os.path.join(Path(__file__).parent, ".env")
  </code></pre>
  
  <p>which works. But I would like to know, if there is a <code>Pathlib</code> alternate to <code>os.path.join()</code>?
  Something like:</p>
  
  <pre><code>dotenv_path = pathlib_alternate_for_join(Path(__file__).parent, ".env")
  </code></pre>