execute_process runs scripts on Unix but not Windows
On Unix, execute_process(COMMAND script.py)
will attempt to run the script with the interpreter set in its shebang, whereas on Windows, it doesn't run. If RESULT_VARIABLE
is used, the error message given is %1 is not a valid Win32 application.
It may be expected that the interpreter is selected based on the settings in the registry for the script's file extension for improved consistency with Unix.
Edited by Chris Djali