title: Python - set path to the directory in project
body: <p>I created a project where my <code>main.py</code> script is in root folder <code>Project</code>. I have a <code>utils</code> directory inside and I want to get the path to this directory. I made a function which saves a <code>.pdf</code> file in my utils directory:</p>
  
  <pre><code>with open(os.path.abspath('utils/' + self.object.object_name+ '.pdf'), 'wb') as f:
                  f.write(pdf)
  </code></pre>
  
  <p>but I get an error: </p>
  
  <blockquote>
    <p>IOError: [Errno 2] No such file or directory: '/home/documents/office/projects/me/utils/d.pdf'</p>
  </blockquote>
  
  <p>How can I change <code>os.path.abspath</code> to do it the right way?<br>
  I want to get into <code>utils</code> directory always.</p>