KDS pre-build scripts and arguments

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KDS pre-build scripts and arguments

跳至解决方案
1,405 次查看
oaf
Contributor IV

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.....

标签 (1)
标记 (2)
0 项奖励
1 解答
1,171 次查看
BlackNight
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
2 回复数
1,172 次查看
BlackNight
NXP Employee
NXP Employee

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

0 项奖励
1,171 次查看
oaf
Contributor IV

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....

0 项奖励