title: Finding a file's directory address on a Mac
body: <p>I am working with a Macbook programming python. What I want to know is how I can access certain files using Python's file functions. A google search failed me.</p>
  
  <p>For example, Windows would be something like this:</p>
  
  <pre><code>f = open(r'C:\text\somefile.txt')
  </code></pre>
  
  <p>How would I access something from a folder saved on the Desktop of a Mac?</p>