title: OSError: [WinError 193] %1 is not a valid Win32 application
body: <p>I am trying to call a Python file &quot;hello.py&quot; from within the python interpreter with subprocess. But I am unable to resolve this error. [Python 3.4.1].</p>
  <pre><code>import subprocess    
  subprocess.call(['hello.py', 'htmlfilename.htm'])
  Traceback (most recent call last):
    File &quot;&lt;pyshell#42&gt;&quot;, line 1, in &lt;module&gt;
      subprocess.call(['hello.py', 'htmlfilename.htm'])
    File &quot;C:\Python34\lib\subprocess.py&quot;, line 537, in call
      with Popen(*popenargs, **kwargs) as p:
    File &quot;C:\Python34\lib\subprocess.py&quot;, line 858, in __init__
      restore_signals, start_new_session)
    File &quot;C:\Python34\lib\subprocess.py&quot;, line 1111, in _execute_child
      startupinfo)
  OSError: [WinError 193] %1 is not a valid Win32 application
  </code></pre>
  <p>Also is there any alternate way to &quot;call a python script with arguments&quot; other than using subprocess?</p>