Hi,
Running KDS-3.0, I use a Python-script to do some work in my project as a pre-build rule.
Command:
${SensBin}\CSprojFix.py --src ${ProjHome}\KDS
When I make my project I got this output in the Console window:
E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS
process_begin: CreateProcess(E:\Sensors\Common\bin\KDS\CSprojFix.py, E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS, ...) failed.
make (e=193): Error 193
make: [pre-build] Error 193 (ignored)
What I don't understand is that the command run by KDS (E:\Sensors\Common\bin\KDS\CSprojFix.py --src E:\Sensors\Modules\HDTransceiver\App\KDS)
works when run from the windows shell, but not from KDS.....
Solved! Go to Solution.
If you type a .py command in the Windows shell (aka DOS prompt), it knows about how to call Python with for it.
Try to add
cmd.exe
in front of your command line, so it launches the windows shell/command prompt.
I hope this helps,
Erich
If you type a .py command in the Windows shell (aka DOS prompt), it knows about how to call Python with for it.
Try to add
cmd.exe
in front of your command line, so it launches the windows shell/command prompt.
I hope this helps,
Erich
Hi,
From a quick test, the error-message has disappeared.
But I'm a little bit curious, if the pre-build command is not running through the cmd.exe what is the intended use then? I mean if evry developer in the world using this, must prepend 'cmd.exe' doesn't seem to be logical....