title: Unable to access commandline arguments in Python 3.6; python launcher the issue?
body: <p>I recently finally moved my default python to 3.6 from 2.7.</p>
  
  <p>Oddly enough, I can't get sys.argv to work correctly.</p>
  
  <p>Short program testargs.py:</p>
  
  <pre><code>#!python3
  import sys
  print("This is the name of the script: ", sys.argv[0])
  print("Number of arguments: ", len(sys.argv))
  print("The arguments are: " , str(sys.argv))
  </code></pre>
  
  <p>When I run it with arguments ("abcdefg") those arguments don't show up in sys.argv:</p>
  
  <pre><code>C:\test&gt;testargs.py abcdefg
  This is the name of the script:  C:\test\testargs.py
  Number of arguments:  1
  The arguments are:  ['C:\\test\\testargs.py']
  </code></pre>
  
  <p>I'm totally confused by this. Any ideas?</p>
  
  <p>I'm using the Python launcher; is that an issue?</p>
  
  <p>When I specifically invoke one or the other Python interpreter, it seems okay:</p>
  
  <pre><code>C:\test&gt;c:\Python27\python.exe testargs.py abcdefg
  ('This is the name of the script: ', 'testargs.py')
  ('Number of arguments: ', 2)
  ('The arguments are: ', "['testargs.py', 'abcdefg']")
  
  C:\test&gt;c:\Python36\python.exe testargs.py abcdefg
  This is the name of the script:  testargs.py
  Number of arguments:  2
  The arguments are:  ['testargs.py', 'abcdefg']
  </code></pre>