The following command execution fails in Windows cmd if python.exe (but not python3.exe) is in the path:
>cppcheck.exe --addon=misra.py dummy.cpp
Error message is:
'python3.exe' is not recognized as an internal or external command,
operable program or batch file.
dummy.cpp:0:0: error: Bailing out from analysis: Checking file failed: Failed to auto detect python [internalError]
Tested with 12.2.1 and origin/main SHA-1: 9dd729e9bec3d56daa4cbffdf8fd16aeadb9ec54
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following command execution fails in Windows cmd if python.exe (but not python3.exe) is in the path:
>cppcheck.exe --addon=misra.py dummy.cpp
Error message is:
'python3.exe' is not recognized as an internal or external command,
operable program or batch file.
dummy.cpp:0:0: error: Bailing out from analysis: Checking file failed: Failed to auto detect python [internalError]
Tested with 12.2.1 and origin/main SHA-1: 9dd729e9bec3d56daa4cbffdf8fd16aeadb9ec54
Thanks! I have created https://trac.cppcheck.net/ticket/12264