title: Adding a relative path to an absolute path in python
body: <p>Assuming I have a absolute path and a relative path</p>
  
  <pre><code>abspath = os.path.abspath(__file__)
  relpath = '../../folder/file'
  </code></pre>
  
  <p>How do I 'add' these two path together without the <code>../..</code>s, is there a module that does this? I can't find anything so far. I'm thinking of a format like:</p>
  
  <pre><code>mypath = some_module.function(abspath, relpath)
  </code></pre>
  
  <p>Instead of doing </p>
  
  <pre><code>mypath = os.path.join(os.path.dirname(os.path.dirname(abspath))), folder, file)
  </code></pre>
  
  <p>Which I think is too bothersome.</p>