title: Run Python scripts from Windows command line, argument not passed
body: <p>I have a bunch of scripts written in Python. I run them from a Windows command prompt like </p>
  
  <pre><code>c:&gt; my_script.py arg1 arg2 arg3
  </code></pre>
  
  <p>This works in every computer and every Windows version since many years ago. Just now it this has broken on my Windows 7 system. The script is loaded and executed. But none of the arguments are passed into the script.</p>
  
  <p>To illustrate this, I have a script named py_echo.py:</p>
  
  <pre><code>from pprint import pprint as pp
  import sys
  
  if __name__ =='__main__':
      pp(sys.argv)
  </code></pre>
  
  <p>Then I execute it with the argument a, b, c. None of them are passed.</p>
  
  <pre><code>c:\Python27\Lib\site-packages&gt;py_echo.py a b c
  ['C:\\0\\usr\\bin\\py_echo.py']
  </code></pre>
  
  <p>If I run python.exe explicitly, the arguments are passed correctly</p>
  
  <pre><code>c:\Python27\Lib\site-packages&gt;python.exe c:\0\usr\bin\py_echo.py a b c
  ['c:\\0\\usr\\bin\\py_echo.py', 'a', 'b', 'c']
  </code></pre>
  
  <p>It was working before. It only start to break down after I uninstalled a bunch old version Python interpreter and modules from my PC. Reinstalling Python does not help. I wonder what can I do to fix this??</p>
  
  <p>I have become very dependent on my scripts I built over the years. I feel very handicapped when they breaks :(</p>