title: In Python Use Current Directory as variable
body: <p>I want to use my current directory inside my fout = file statement. The timestamp variable works fine but i have to manually enter the directory to get that part to work and i would like it to be automatic.</p>
  
  <pre><code>dir = os.getcwd()
  timeStamp = datetime.datetime.now().strftime("%A, %d. %B %Y %I-%M%p")
  qs = self.rfile.read(int(length[0]))
  fout = file(os.path.join('/dir', 'video_'+timeStamp+'_.mov'), 'wb')
  fout.write (qs)
  </code></pre>