title: VBS call Python - sys argument not found
body: <p>I have this simple VBScript that calls a Python script:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim value, oShell
  value = "someValue"
  Set oShell = CreateObject("WScript.Shell")
  currentCommand = "cmd /k " &amp; Chr(34) &amp; "C:\Temp\test.py" &amp; " " &amp; value &amp; Chr(34)
  oShell.Run currentCommand, 1, True
  </code></pre>
  
  <p>Python script looks like this:</p>
  
  <pre class="lang-python prettyprint-override"><code>import sys
  if __name__ == '__main__':
      val = sys.argv[1]
      # continue...
  </code></pre>
  
  <p>The <code>sys.argv[1]</code> value comes over fine on my main computer but does not come over on a ToughBook (TB) computer (same software on both).  I get this error on the other computer:</p>
  
  <blockquote>
    <p>val = sys.argv[1] IndexError: list index out of range</p>
  </blockquote>
  
  <p>If I hard-code the val in the Python code the rest of the Python code works fine on the TB computer.</p>
  
  <p>Does anyone have a thought why this <code>sys.argv[1]</code> is not coming over on the other computer?</p>