title: How to execute Python scripts in Windows?
body: <p>I have a simple script blah.py (using Python 2):</p>
  
  <pre><code>import sys
  print sys.argv[1]
  </code></pre>
  
  <p>If I execute my script by:</p>
  
  <pre><code>python c:/..../blah.py argument
  </code></pre>
  
  <p>It prints argument but if I execute script by:</p>
  
  <pre><code>blah.py argument
  </code></pre>
  
  <p>error occurs:</p>
  
  <blockquote>
    <p>IndexError...</p>
  </blockquote>
  
  <p>So arguments do not pass to script.</p>
  
  <p>python.exe in PATH. Folder with blah.py also in PATH.<br>
  python.exe is default program to execute *.py files.</p>
  
  <p>What is the problem?</p>