title: Find path to currently running file
body: <p>How can I find the full path to the currently running Python script? That is to say, what do I have to do to achieve this:</p>
  
  <pre><code>$ pwd
  /tmp
  $ python baz.py
  running from /tmp 
  file is baz.py
  </code></pre>