title: Accessing relative path in Python
body: <p>I'm running a Mac OS X environment and am used to using ~/ to provide the access to the current user's directory.</p>
  
  <p>For example, in my python script I'm just trying to use </p>
  
  <pre><code>os.chdir("/Users/aaron/Desktop/testdir/")
  </code></pre>
  
  <p>But would like to use </p>
  
  <pre><code>os.chdir("~/Desktop/testdir/")
  </code></pre>
  
  <p>I'm getting a no such file or directory error when trying to run this. Any ideas?</p>