title: Python path as a string
body: <p>I am specifying a relative file path using jacaro's <a href="https://github.com/jaraco/path.py" rel="nofollow noreferrer">path</a> module.</p>
  <p>How can I get the absolute path from this variable as a string?</p>
  <pre><code>import path # From https://github.com/jaraco/path.py
  
  path = path.path('~/folder/')
  relative_filename = path.joinpath('foo')
  # how can I get the absolute path of as a string?
  absolute_path = ???
  fd = open(absolute_path)
  </code></pre>