title: How Can I Execute A Python Script By Just Typing The Script's Name?
body: <p>I have a python script that I want to execute from the terminal, but I don't want to use the command <code>python</code><em><code>scriptName.py</code></em>, instead, I'd like to just type <code>scriptName</code>. Is that possible? If it is, how?</p>
  
  <p>I had a look in <a href="https://stackoverflow.com/questions/21497126/how-do-i-execute-a-python-script-from-the-command-line-using-custom-commands">here</a> and <a href="https://stackoverflow.com/questions/3400381/calling-a-python-script-from-command-line-without-typing-python-first">here</a>, but it doesn't work (probably because I'm on a different os).</p>
  
  <p>I'm using python 2.7.9 on osx Yosemite (10.10.3).</p>