title: Get name of current script in Python
body: <p>I'm trying to get the name of the Python script that is currently running.</p>
  <p>I have a script called <code>foo.py</code> and I'd like to do something like this in order to get the script name:</p>
  <pre class="lang-py prettyprint-override"><code>print(Scriptname)
  </code></pre>