OSError: [WinError 193]% 1 no es una aplicación Win32 válida
Estoy tratando de llamar a un archivo de python "hello.py" desde el intérprete de python con subproceso. Pero no puedo resolver este error. [Python 3.4.1].
import subprocess
subprocess.call(['hello.py', 'htmlfilename.htm'])
Traceback (most recent call last):
File "<pyshell#42>", line 1, in <module>
subprocess.call(['hello.py', 'htmlfilename.htm'])
File "C:\Python34\lib\subprocess.py", line 537, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Python34\lib\subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1111, in _execute_child
startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application
Además, ¿hay alguna forma alternativa de "llamar a un script de Python con argumentos" que no sea el uso de subprocesos? Gracias por adelantado.